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:
parent
185235333c
commit
8f3c9e87d9
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue