airbrake 8.0.0.rc.6 → 8.0.0.rc.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -269,7 +269,11 @@ RSpec.describe "Rails integration specs" do
269
269
  describe "notice payload when a user is authenticated without Warden" do
270
270
  context "when the current_user method is defined" do
271
271
  before do
272
- allow(Warden::Proxy).to receive(:new) { nil }
272
+ allow_message_expectations_on_nil
273
+ allow(Warden::Proxy).to receive(:new).and_return(nil)
274
+ # Mock on_request to make the test pass. Started failing in warden 1.2.8
275
+ # due to: https://github.com/wardencommunity/warden/pull/162
276
+ allow(nil).to receive(:on_request).and_return(nil)
273
277
  end
274
278
 
275
279
  it "contains the user information" do
@@ -301,7 +305,9 @@ RSpec.describe "Rails integration specs" do
301
305
 
302
306
  wait_for_a_request_with_body(/"errors"/)
303
307
 
304
- body = %r|{"routes":\[{"method":"GET","route":"\/crash\(\.:format\)"|
308
+ body = %r|
309
+ {"routes":\[{"method":"GET","route":"\/crash\(\.:format\)","status_code":500
310
+ |x
305
311
  wait_for(a_request(:put, routes_endpoint).with(body: body)).
306
312
  to have_been_made.once
307
313
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: airbrake
3
3
  version: !ruby/object:Gem::Version
4
- version: 8.0.0.rc.6
4
+ version: 8.0.0.rc.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Airbrake Technologies, Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-11-12 00:00:00.000000000 Z
11
+ date: 2018-11-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: airbrake-ruby
@@ -261,6 +261,7 @@ files:
261
261
  - spec/apps/rails/dummy_app.rb
262
262
  - spec/apps/rails/dummy_task.rake
263
263
  - spec/apps/rails/logs/42.log
264
+ - spec/apps/rails/logs/51.log
264
265
  - spec/apps/sinatra/composite_app/sinatra_app1.rb
265
266
  - spec/apps/sinatra/composite_app/sinatra_app2.rb
266
267
  - spec/apps/sinatra/dummy_app.rb
@@ -337,3 +338,4 @@ test_files:
337
338
  - spec/apps/rails/dummy_task.rake
338
339
  - spec/apps/rails/dummy_app.rb
339
340
  - spec/apps/rails/logs/42.log
341
+ - spec/apps/rails/logs/51.log