1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

test name should reflect the name of the method

that is actually being called
This commit is contained in:
Neeraj Singh 2011-06-08 03:05:25 -04:00
parent 185235333c
commit 8f3c9e87d9

View file

@ -241,11 +241,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