Permalink
Browse files

Update stubbing example in README to match method signature

Literally following the instructions in the README could lead to
test suite failures if `Airbrake.notify` ever gets called with options.

Avoid this by updating the example to match the actual method signature.
  • Loading branch information...
1 parent 9cfed92 commit cd424bace615c2d7df28d80c94901b046c468aa9 Greg Hurrell committed Apr 11, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 README.md
View
@@ -373,7 +373,7 @@ use code like this in your test_helper.rb or spec_helper.rb files to redefine
that method so those errors are not reported while running tests.
module Airbrake
- def self.notify(thing)
+ def self.notify(exception, opts = {})
# do nothing.
end
end

0 comments on commit cd424ba

Please sign in to comment.