-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"Airbrake::Error: the 'default' notifier isn't configured" thrown after unsuccessful specs #28
Labels
Comments
kyrylo
added a commit
that referenced
this issue
Jan 18, 2016
Fixes #28 ("Airbrake::Error: the 'default' notifier isn't configured" thrown after unsuccessful specs) This fixes issues with the Rake integration. There was a [similar issue][1] reported a couple of weeks ago. The change presented here fixes both issues by reraising `SystemExit`, which propagates it and gets handled by Ruby. [1]: #13
kyrylo
added a commit
that referenced
this issue
Jan 18, 2016
Fixes #28 ("Airbrake::Error: the 'default' notifier isn't configured" thrown after unsuccessful specs) This fixes issues with the Rake integration. There was a [similar issue][1] to a bug with the Rake integration reported a couple of weeks ago. The change presented here fixes both issues by reraising `SystemExit`, which propagates it and gets handled by Ruby. [1]: #13
kyrylo
added a commit
that referenced
this issue
Jan 18, 2016
Fixes #28 ("Airbrake::Error: the 'default' notifier isn't configured" thrown after unsuccessful specs) This fixes issues with the Rake integration. There was a [similar issue][1] to a bug with the Rake integration reported a couple of weeks ago. The change presented here fixes both issues by reraising `SystemExit`, which propagates it and gets handled by Ruby. [1]: #13
Just had a go with the newest version, the issue is fixed 🐛 🔫 Thanks a lot for looking into it @kyrylo 👍 |
Happy Airbraking ;) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Airbrake config
Description
I am getting an error when using rake tasks, specifically:
Airbrake::Error: the 'default' notifier isn't configured
This happens when RSpec's rake task exits because of a failing spec. This does not happen when specs succeed.
I'm using the latest version (
1.0.2
) and I'm not quite sure why #14 does not apply in this case, as it seems to beSystemExit
as well.I removed some irrelevant output from RSpec, but the output I get is this:
Adding the Airbrake config to
spec_helper.rb
does not work. I get the same error there, which exists the specs prematurely, then giving me the error a second time after the rake task has exited.rake spec
does not output anything for me when not specifying the environment, that is, it does not run the specs at all, and exits without doing anything. (I suspect this is because RSpec is under the:test
group in my Gemfile)bundle exec rspec
does not trigger the error when specs fail.bundle exec rake
(which runs the specs) does trigger the error when specs fail (this is how I came across this issue in the first place)Discussion on this issue initially started on #13, but I created an new issue as per @kyrylo's request.
The text was updated successfully, but these errors were encountered: