aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/controller
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@gmail.com>2011-03-30 17:22:05 +0200
committerJosé Valim <jose.valim@gmail.com>2011-03-30 17:22:05 +0200
commitba51aa0b1ba7488011388ed4cf33f72917da0729 (patch)
treebad7b1d9e29e6ce31f2d618074f53de223b68828 /actionpack/test/controller
parent58becf116580c37c63b89f4a660ebe293f6e7c4e (diff)
downloadrails-ba51aa0b1ba7488011388ed4cf33f72917da0729.tar.gz
rails-ba51aa0b1ba7488011388ed4cf33f72917da0729.tar.bz2
rails-ba51aa0b1ba7488011388ed4cf33f72917da0729.zip
Make action_method? public and change implicit rendering to override it instead.
Diffstat (limited to 'actionpack/test/controller')
-rw-r--r--actionpack/test/controller/new_base/render_implicit_action_test.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/actionpack/test/controller/new_base/render_implicit_action_test.rb b/actionpack/test/controller/new_base/render_implicit_action_test.rb
index 9f69d20329..667a9021be 100644
--- a/actionpack/test/controller/new_base/render_implicit_action_test.rb
+++ b/actionpack/test/controller/new_base/render_implicit_action_test.rb
@@ -24,5 +24,10 @@ module RenderImplicitAction
assert_body "Hello hyphen-ated!"
assert_status 200
end
+
+ test "action_method? returns true for implicit actions" do
+ assert SimpleController.new.action_method?(:hello_world)
+ assert SimpleController.new.action_method?(:"hyphen-ated")
+ end
end
end