aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@gmail.com>2011-06-08 00:41:55 -0700
committerJosé Valim <jose.valim@gmail.com>2011-06-08 00:41:55 -0700
commit47ac896936463d7040ccda03276451a7d0a8f08e (patch)
tree63e92f8dddc67d3c68547b49cb193a92957ed311 /actionpack/test
parent2bf686f4db5593adc11340e586e6e1f1cab4e897 (diff)
parent8f3c9e87d95215f54db686af079d5a07e1cedb52 (diff)
downloadrails-47ac896936463d7040ccda03276451a7d0a8f08e.tar.gz
rails-47ac896936463d7040ccda03276451a7d0a8f08e.tar.bz2
rails-47ac896936463d7040ccda03276451a7d0a8f08e.zip
Merge pull request #1549 from neerajdotname/rename_to_method_for_action
test name should reflect the name of the method
Diffstat (limited to 'actionpack/test')
-rw-r--r--actionpack/test/abstract/abstract_controller_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/test/abstract/abstract_controller_test.rb b/actionpack/test/abstract/abstract_controller_test.rb
index 424f1e9a16..53712a60ec 100644
--- a/actionpack/test/abstract/abstract_controller_test.rb
+++ b/actionpack/test/abstract/abstract_controller_test.rb
@@ -235,11 +235,11 @@ module AbstractController
assert_dispatch ActionMissingRespondToActionController, "success", :ohai
end
- test "a method is available as an action if respond_to_action? returns true" do
+ test "a method is available as an action if method_for_action returns true" do
assert_dispatch RespondToActionController, "success", :index
end
- test "raises ActionNotFound if method is defined but respond_to_action? returns false" do
+ test "raises ActionNotFound if method is defined but method_for_action returns false" do
assert_raise(ActionNotFound) { RespondToActionController.new.process(:fail) }
end
end