diff options
author | Alexey Vakhov <vakhov@gmail.com> | 2011-10-03 11:04:22 +0400 |
---|---|---|
committer | Alexey Vakhov <vakhov@gmail.com> | 2011-10-03 14:27:41 +0400 |
commit | 0defbc6bfeff053983ef65739b2dcc080b2ad227 (patch) | |
tree | 524898771091444875b29f01402b1c0ce1c55c83 /actionmailer/test/test_test.rb | |
parent | 6f429f375e43529f2dd1a2f37cbaabeef40c6ea9 (diff) | |
download | rails-0defbc6bfeff053983ef65739b2dcc080b2ad227.tar.gz rails-0defbc6bfeff053983ef65739b2dcc080b2ad227.tar.bz2 rails-0defbc6bfeff053983ef65739b2dcc080b2ad227.zip |
normalize arg for ActionMailer::TestCase tests method
Diffstat (limited to 'actionmailer/test/test_test.rb')
-rw-r--r-- | actionmailer/test/test_test.rb | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/actionmailer/test/test_test.rb b/actionmailer/test/test_test.rb new file mode 100644 index 0000000000..86fd37bea6 --- /dev/null +++ b/actionmailer/test/test_test.rb @@ -0,0 +1,28 @@ +require 'abstract_unit' + +class TestTestMailer < ActionMailer::Base +end + +class CrazyNameMailerTest < ActionMailer::TestCase + tests TestTestMailer + + def test_set_mailer_class_manual + assert_equal TestTestMailer, self.class.mailer_class + end +end + +class CrazySymbolNameMailerTest < ActionMailer::TestCase + tests :test_test_mailer + + def test_set_mailer_class_manual_using_symbol + assert_equal TestTestMailer, self.class.mailer_class + end +end + +class CrazyStringNameMailerTest < ActionMailer::TestCase + tests 'test_test_mailer' + + def test_set_mailer_class_manual_using_string + assert_equal TestTestMailer, self.class.mailer_class + end +end |