diff options
author | Neeraj Singh <neerajdotname@gmail.com> | 2011-06-08 03:05:25 -0400 |
---|---|---|
committer | Neeraj Singh <neerajdotname@gmail.com> | 2011-06-08 03:17:27 -0400 |
commit | 8f3c9e87d95215f54db686af079d5a07e1cedb52 (patch) | |
tree | 68ceff7de4e32d20e76886f072cd16d86ab26f14 /actionpack/test | |
parent | 185235333c7b345e7cbb6384446c89d8447f5d79 (diff) | |
download | rails-8f3c9e87d95215f54db686af079d5a07e1cedb52.tar.gz rails-8f3c9e87d95215f54db686af079d5a07e1cedb52.tar.bz2 rails-8f3c9e87d95215f54db686af079d5a07e1cedb52.zip |
test name should reflect the name of the method
that is actually being called
Diffstat (limited to 'actionpack/test')
-rw-r--r-- | actionpack/test/abstract/abstract_controller_test.rb | 4 |
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 981c023d38..9c3291f142 100644 --- a/actionpack/test/abstract/abstract_controller_test.rb +++ b/actionpack/test/abstract/abstract_controller_test.rb @@ -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 |