aboutsummaryrefslogtreecommitdiffstats
path: root/actionmailer/test/test_test.rb
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@gmail.com>2011-10-09 02:15:19 -0700
committerJosé Valim <jose.valim@gmail.com>2011-10-09 02:15:19 -0700
commit501e5b0d7ff995070e66d4322ed03bd882639258 (patch)
tree10341d3a391c1fe62808b34dd7cf49323428bd8f /actionmailer/test/test_test.rb
parentbedd6dcd432f55460624455b5026d1d52c1967d4 (diff)
parent8df7fe3f630e13da1585c151f6f2f986ea7dcdfd (diff)
downloadrails-501e5b0d7ff995070e66d4322ed03bd882639258.tar.gz
rails-501e5b0d7ff995070e66d4322ed03bd882639258.tar.bz2
rails-501e5b0d7ff995070e66d4322ed03bd882639258.zip
Merge pull request #3196 from avakhov/patch-am-av-tests-2
Improve tests method for ActionView::TestCase and ActionMailer::TestCase
Diffstat (limited to 'actionmailer/test/test_test.rb')
-rw-r--r--actionmailer/test/test_test.rb28
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