Permalink
Browse files

Merge pull request #1549 from neerajdotname/rename_to_method_for_action

test name should reflect the name of the method
  • Loading branch information...
josevalim committed Jun 8, 2011
2 parents 2bf686f + 8f3c9e8 commit 47ac896936463d7040ccda03276451a7d0a8f08e
Showing with 2 additions and 2 deletions.
  1. +2 −2 actionpack/test/abstract/abstract_controller_test.rb
@@ -235,11 +235,11 @@ def assert_dispatch(klass, body = "success", action = :index)
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

0 comments on commit 47ac896

Please sign in to comment.