This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Using respond_to? instead of checking instance_methods

Signed-off-by: Nick Quaranto <nick@quaran.to>
  • Loading branch information...
jasonm authored and qrush committed Jun 17, 2009
1 parent fb16999 commit eee95a901285bc966854d26ce6b5b522fd80bc86
Showing with 2 additions and 2 deletions.
  1. +1 −1 test/configuration_test.rb
  2. +1 −1 test/controller_test.rb
@@ -10,7 +10,7 @@ def rescue_action e
rescue_action_in_public e
end
end
assert @controller.methods.include?("notify_hoptoad")
assert @controller.respond_to?(:notify_hoptoad)
end
should "be done with a block" do
View
@@ -20,7 +20,7 @@ def expect_session_data_for(controller)
def should_notify_normally
should "have inserted its methods into the controller" do
assert @controller.methods.include?("notify_hoptoad")
assert @controller.respond_to?(:notify_hoptoad)
end
should "prevent raises and send the error to hoptoad" do

0 comments on commit eee95a9

Please sign in to comment.