spec/spec_helper.rb in bugsnag-2.8.12 vs spec/spec_helper.rb in bugsnag-2.8.13
- old
+ new
@@ -25,15 +25,15 @@
config.before(:each) do
WebMock.stub_request(:post, "https://notify.bugsnag.com/")
Bugsnag.instance_variable_set(:@configuration, Bugsnag::Configuration.new)
- Bugsnag.configure do |config|
- config.api_key = "c9d60ae4c7e70c4b6c4ebd3e8056d2b8"
- config.release_stage = "production"
- config.delivery_method = :synchronous
+ Bugsnag.configure do |bugsnag|
+ bugsnag.api_key = "c9d60ae4c7e70c4b6c4ebd3e8056d2b8"
+ bugsnag.release_stage = "production"
+ bugsnag.delivery_method = :synchronous
# silence logger in tests
- config.logger = Logger.new(StringIO.new)
+ bugsnag.logger = Logger.new(StringIO.new)
end
end
config.after(:each) do
Bugsnag.configuration.clear_request_data