diff options
author | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2019-08-01 10:26:30 +0900 |
---|---|---|
committer | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2019-08-01 10:26:59 +0900 |
commit | 6b3d9f8f86a066d003bff7003615448997483c6c (patch) | |
tree | 0c4d01b0004cb1c5e93272a916faae7066b0b9e6 /actionmailer/test/base_test.rb | |
parent | 388e011b0828216c4bc51c2af5d0e1cc0fd9d314 (diff) | |
download | rails-6b3d9f8f86a066d003bff7003615448997483c6c.tar.gz rails-6b3d9f8f86a066d003bff7003615448997483c6c.tar.bz2 rails-6b3d9f8f86a066d003bff7003615448997483c6c.zip |
Do not use the same test class in different tests
This fixes the following warnings.
```
actionmailer/test/base_test.rb:272: warning: method redefined; discarding old welcome
actionmailer/test/base_test.rb:260: warning: previous definition of welcome was here
```
Diffstat (limited to 'actionmailer/test/base_test.rb')
-rw-r--r-- | actionmailer/test/base_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/actionmailer/test/base_test.rb b/actionmailer/test/base_test.rb index a6223964e5..6fa5be54cb 100644 --- a/actionmailer/test/base_test.rb +++ b/actionmailer/test/base_test.rb @@ -268,14 +268,14 @@ class BaseTest < ActiveSupport::TestCase end test "accessing inline attachments after mail was called works" do - class LateInlineAttachmentMailer < ActionMailer::Base + class LateInlineAttachmentAccessorMailer < ActionMailer::Base def welcome mail body: "yay", from: "welcome@example.com", to: "to@example.com" attachments.inline["invoice.pdf"] end end - assert_nothing_raised { LateInlineAttachmentMailer.welcome.message } + assert_nothing_raised { LateInlineAttachmentAccessorMailer.welcome.message } end test "adding inline attachments while rendering mail works" do |