Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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...
commit 47ac896936463d7040ccda03276451a7d0a8f08e 2 parents 2bf686f + 8f3c9e8
@josevalim josevalim authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 actionpack/test/abstract/abstract_controller_test.rb
View
4 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
Please sign in to comment.
Something went wrong with that request. Please try again.