diff options
author | Yehuda Katz + Carl Lerche <ykatz+clerche@engineyard.com> | 2009-05-15 15:57:12 -0700 |
---|---|---|
committer | Yehuda Katz + Carl Lerche <ykatz+clerche@engineyard.com> | 2009-05-15 15:57:12 -0700 |
commit | 7e10504bdeab14ea70a942110a1b1ef6d8467ed3 (patch) | |
tree | ee0794eff8073fc91ca5bc38cbba87b92b65a8af /actionpack/test | |
parent | eb021707f53be46140b55a48e5ef03ed0577a45c (diff) | |
download | rails-7e10504bdeab14ea70a942110a1b1ef6d8467ed3.tar.gz rails-7e10504bdeab14ea70a942110a1b1ef6d8467ed3.tar.bz2 rails-7e10504bdeab14ea70a942110a1b1ef6d8467ed3.zip |
Refactored AbstractController to provide better hook points for overriding aspects of action dispatching
Diffstat (limited to 'actionpack/test')
-rw-r--r-- | actionpack/test/abstract_controller/abstract_controller_test.rb | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/actionpack/test/abstract_controller/abstract_controller_test.rb b/actionpack/test/abstract_controller/abstract_controller_test.rb index 689aa99fd8..9c028e7d1e 100644 --- a/actionpack/test/abstract_controller/abstract_controller_test.rb +++ b/actionpack/test/abstract_controller/abstract_controller_test.rb @@ -201,11 +201,10 @@ module AbstractController def fail() self.response_body = "fail" end private - - def respond_to_action?(action_name) - action_name.to_s != "fail" + + def method_for_action(action_name) + action_name.to_s != "fail" && action_name end - end class TestRespondToAction < ActiveSupport::TestCase |