smoke_detector 1.1.1 → 1.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -32,7 +32,10 @@ end
32
32
  shared_examples_for 'Rollbar integrated error handler' do
33
33
  context 'uncaught in a controller' do
34
34
  it 'reports the error to Rollbar' do
35
- Rollbar.should_receive(:log).with('error', instance_of(RuntimeError)).and_return({})
35
+ Rollbar.should_receive(:log) do |level, args|
36
+ expect(level).to eq('error')
37
+ expect(args.first).to be_a(RuntimeError)
38
+ end.and_return({})
36
39
  expect { get '/widgets/bubble_up' }.to raise_error(RuntimeError, 'bubble_up')
37
40
  end
38
41
  end
@@ -46,7 +49,10 @@ shared_examples_for 'Rollbar integrated error handler' do
46
49
 
47
50
  context 'uncaught in a model' do
48
51
  it 'reports the error to Rollbar' do
49
- Rollbar.should_receive(:log).with('error', instance_of(RuntimeError)).and_return({})
52
+ Rollbar.should_receive(:log) do |level, args|
53
+ expect(level).to eq('error')
54
+ expect(args.first).to be_a(RuntimeError)
55
+ end.and_return({})
50
56
  expect { get '/widgets/deep_bubble_up' }.to raise_error(RuntimeError, 'deep_bubble_up')
51
57
  end
52
58
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: smoke_detector
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Friedrich
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-11-13 00:00:00.000000000 Z
11
+ date: 2015-02-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -44,14 +44,14 @@ dependencies:
44
44
  requirements:
45
45
  - - ~>
46
46
  - !ruby/object:Gem::Version
47
- version: 1.2.7
47
+ version: 1.4.0
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - ~>
53
53
  - !ruby/object:Gem::Version
54
- version: 1.2.7
54
+ version: 1.4.0
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: jshintrb
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -317,4 +317,3 @@ test_files:
317
317
  - spec/requests/rollbar_config_spec.rb
318
318
  - spec/spec_helper.rb
319
319
  - spec/support/shared_examples_for_providers.rb
320
- has_rdoc: