diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2008-01-03 00:40:28 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2008-01-03 00:40:28 +0000 |
commit | 6a6367d7d207e54fced36b58a1abdd7ef0d36f82 (patch) | |
tree | e7231c6588fff012bd3e1f8a3c13db1264a7f6e1 /actionmailer/test | |
parent | 64b4c18e159a1a75f70b64c5be780eb5cfe92aa9 (diff) | |
download | rails-6a6367d7d207e54fced36b58a1abdd7ef0d36f82.tar.gz rails-6a6367d7d207e54fced36b58a1abdd7ef0d36f82.tar.bz2 rails-6a6367d7d207e54fced36b58a1abdd7ef0d36f82.zip |
Fixed that you don't have to call super in ActionMailer::TestCase#setup (closes #10406) [jamesgolick]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8536 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionmailer/test')
-rw-r--r-- | actionmailer/test/test_helper_test.rb | 18 |
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 |