aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/template
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 /actionpack/test/template
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 'actionpack/test/template')
-rw-r--r--actionpack/test/template/test_test.rb16
1 files changed, 16 insertions, 0 deletions
diff --git a/actionpack/test/template/test_test.rb b/actionpack/test/template/test_test.rb
index bf789cd8b7..adcbf1447f 100644
--- a/actionpack/test/template/test_test.rb
+++ b/actionpack/test/template/test_test.rb
@@ -62,3 +62,19 @@ class CrazyHelperTest < ActionView::TestCase
assert_equal PeopleHelper, self.class.helper_class
end
end
+
+class CrazySymbolHelperTest < ActionView::TestCase
+ tests :people
+
+ def test_set_helper_class_using_symbol
+ assert_equal PeopleHelper, self.class.helper_class
+ end
+end
+
+class CrazyStringHelperTest < ActionView::TestCase
+ tests 'people'
+
+ def test_set_helper_class_using_string
+ assert_equal PeopleHelper, self.class.helper_class
+ end
+end