Skip to content

Commit

Permalink
rails_spec: fix failing test
Browse files Browse the repository at this point in the history
* CHANGELOG: mention airbrake#591
  • Loading branch information
kyrylo committed Aug 10, 2016
1 parent 01c8d74 commit 6fb4675
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ Airbrake Changelog

### master

* **IMPORTANT**: fixed ActiveJob integration not re-raising exceptions, which
resulted into marking failed jobs as successfully completed
([#591](https://github.com/airbrake/airbrake/issues/591))
* Fixed Rails runner integration not reporting errors
([#582](https://github.com/airbrake/airbrake/issues/580))
* Fixed bug with the [enum_field](https://github.com/jamesgolick/enum_field) gem
Expand Down
8 changes: 8 additions & 0 deletions spec/integration/rails/rails_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,14 @@
allow(Airbrake).to receive(:build_notice).and_return(nil)
allow(Airbrake).to receive(:notify)

# Make sure we don't call `build_notice` more than 1 time. Rack
# integration will try to handle error 500 and we want to prevent
# that: https://github.com/airbrake/airbrake/pull/583
allow_any_instance_of(Airbrake::Rack::Middleware).to(
receive(:notify_airbrake).
and_return(nil)
)

get '/active_job'
sleep 2

Expand Down

0 comments on commit 6fb4675

Please sign in to comment.