aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test
diff options
context:
space:
mode:
authorAlexey Vakhov <vakhov@gmail.com>2011-10-03 12:05:25 +0400
committerAlexey Vakhov <vakhov@gmail.com>2011-10-03 14:27:42 +0400
commit8df7fe3f630e13da1585c151f6f2f986ea7dcdfd (patch)
tree4254e070ffdc72ada7dbef23e4ae7ae490aae3db /actionpack/test
parent0defbc6bfeff053983ef65739b2dcc080b2ad227 (diff)
downloadrails-8df7fe3f630e13da1585c151f6f2f986ea7dcdfd.tar.gz
rails-8df7fe3f630e13da1585c151f6f2f986ea7dcdfd.tar.bz2
rails-8df7fe3f630e13da1585c151f6f2f986ea7dcdfd.zip
normalize arg for ActionView::TestCase tests method
Diffstat (limited to 'actionpack/test')
-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