aboutsummaryrefslogtreecommitdiffstats
path: root/actionmailer/test
diff options
context:
space:
mode:
Diffstat (limited to 'actionmailer/test')
-rw-r--r--actionmailer/test/test_helper_test.rb18
1 files changed, 18 insertions, 0 deletions
diff --git a/actionmailer/test/test_helper_test.rb b/actionmailer/test/test_helper_test.rb
index eb17e3e803..d361e23a8e 100644
--- a/actionmailer/test/test_helper_test.rb
+++ b/actionmailer/test/test_helper_test.rb
@@ -115,3 +115,21 @@ class TestHelperMailerTest < ActionMailer::TestCase
assert_match /0 .* but 1/, error.message
end
end
+
+class AnotherTestHelperMailerTest < ActionMailer::TestCase
+
+ tests TestHelperMailer
+
+ def setup
+ # Should not override ActionMailer setup methods
+ @test_var = "a value"
+ end
+
+ def test_should_still_setup_mailer
+ assert @expected.is_a?(TMail::Mail)
+ end
+
+ def test_should_run_overridden_setup_method
+ assert @test_var
+ end
+end