diff options
author | José Valim <jose.valim@gmail.com> | 2011-03-30 17:22:05 +0200 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2011-03-30 17:22:05 +0200 |
commit | ba51aa0b1ba7488011388ed4cf33f72917da0729 (patch) | |
tree | bad7b1d9e29e6ce31f2d618074f53de223b68828 /actionpack/test | |
parent | 58becf116580c37c63b89f4a660ebe293f6e7c4e (diff) | |
download | rails-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')
-rw-r--r-- | actionpack/test/controller/new_base/render_implicit_action_test.rb | 5 |
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 |