Remove unneeded Deprecation.silence

上级 c1b8d0d9
...@@ -57,9 +57,7 @@ def test_send_mail ...@@ -57,9 +57,7 @@ def test_send_mail
stub_any_instance(Mail::SMTP, instance: Mail::SMTP.new({})) do |instance| stub_any_instance(Mail::SMTP, instance: Mail::SMTP.new({})) do |instance|
assert_called(instance, :deliver!) do assert_called(instance, :deliver!) do
with_translation "de", email_subject: "[Anmeldung] Willkommen" do with_translation "de", email_subject: "[Anmeldung] Willkommen" do
ActiveSupport::Deprecation.silence do get "/test/send_mail"
get "/test/send_mail"
end
assert_equal "Mail sent - Subject: [Anmeldung] Willkommen", @response.body assert_equal "Mail sent - Subject: [Anmeldung] Willkommen", @response.body
end end
end end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册