aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/controller/test_test.rb
diff options
context:
space:
mode:
authorAlexey Vakhov <vakhov@gmail.com>2011-10-03 10:19:15 +0400
committerAlexey Vakhov <vakhov@gmail.com>2011-10-03 12:12:07 +0400
commit8e946daf6957b46744a90d25266b0ec5e8537079 (patch)
tree6389c3d2ebc82de712d62612f80e0e4996f18b97 /actionpack/test/controller/test_test.rb
parentd68884f4fddf5452f1dcbdf1a7b35d5889926fe5 (diff)
downloadrails-8e946daf6957b46744a90d25266b0ec5e8537079.tar.gz
rails-8e946daf6957b46744a90d25266b0ec5e8537079.tar.bz2
rails-8e946daf6957b46744a90d25266b0ec5e8537079.zip
normalize arg for AC::TestCase tests class method
Diffstat (limited to 'actionpack/test/controller/test_test.rb')
-rw-r--r--actionpack/test/controller/test_test.rb16
1 files changed, 16 insertions, 0 deletions
diff --git a/actionpack/test/controller/test_test.rb b/actionpack/test/controller/test_test.rb
index ca87cda2a3..b64e275363 100644
--- a/actionpack/test/controller/test_test.rb
+++ b/actionpack/test/controller/test_test.rb
@@ -774,6 +774,22 @@ class CrazyNameTest < ActionController::TestCase
end
end
+class CrazySymbolNameTest < ActionController::TestCase
+ tests :content
+
+ def test_set_controller_class_using_symbol
+ assert_equal ContentController, self.class.controller_class
+ end
+end
+
+class CrazyStringNameTest < ActionController::TestCase
+ tests 'content'
+
+ def test_set_controller_class_using_string
+ assert_equal ContentController, self.class.controller_class
+ end
+end
+
class NamedRoutesControllerTest < ActionController::TestCase
tests ContentController