airbrake 8.0.0.rc.7 → 8.0.0.rc.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/airbrake/rack/middleware.rb +2 -0
- data/lib/airbrake/version.rb +1 -1
- data/spec/apps/rails/logs/51.log +1559 -0
- data/spec/integration/rails/rails_spec.rb +17 -0
- metadata +2 -2
@@ -311,5 +311,22 @@ RSpec.describe "Rails integration specs" do
|
|
311
311
|
wait_for(a_request(:put, routes_endpoint).with(body: body)).
|
312
312
|
to have_been_made.once
|
313
313
|
end
|
314
|
+
|
315
|
+
it "defaults to 500 when status code for exception returns 0" do
|
316
|
+
expect(Airbrake[:default]).to receive(:notify_request).and_call_original
|
317
|
+
allow(ActionDispatch::ExceptionWrapper).
|
318
|
+
to receive(:status_code_for_exception).and_return(0)
|
319
|
+
|
320
|
+
head '/crash'
|
321
|
+
sleep 2
|
322
|
+
|
323
|
+
wait_for_a_request_with_body(/"errors"/)
|
324
|
+
|
325
|
+
body = %r|
|
326
|
+
{"routes":\[{"method":"HEAD","route":"\/crash\(\.:format\)","status_code":500
|
327
|
+
|x
|
328
|
+
wait_for(a_request(:put, routes_endpoint).with(body: body)).
|
329
|
+
to have_been_made.once
|
330
|
+
end
|
314
331
|
end
|
315
332
|
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.
|
4
|
+
version: 8.0.0.rc.8
|
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-
|
11
|
+
date: 2018-11-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: airbrake-ruby
|