Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #22 from mateusdelbianco/master
Enhancements and bugfixes.
- Loading branch information
Showing
15 changed files
with
678 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
|
||
require 'test_helper' | ||
|
||
begin | ||
require 'airbrake' | ||
rescue LoadError | ||
warn "Install airbrake gem to run Airbrake tests." | ||
end | ||
|
||
if defined? Airbrake | ||
require 'resque/failure/airbrake' | ||
context "Airbrake" do | ||
test "should be notified of an error" do | ||
exception = StandardError.new("BOOM") | ||
worker = Resque::Worker.new(:test) | ||
queue = "test" | ||
payload = {'class' => Object, 'args' => 66} | ||
|
||
Airbrake.expects(:notify_or_ignore).with( | ||
exception, | ||
:parameters => {:payload_class => 'Object', :payload_args => '66'}) | ||
|
||
backend = Resque::Failure::Airbrake.new(exception, worker, queue, payload) | ||
backend.save | ||
end | ||
end | ||
end |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.