File tree 3 files changed +2
-6
lines changed
3 files changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -156,8 +156,6 @@ Performance/InefficientHashSearch:
156
156
157
157
Performance/OpenStruct :
158
158
Enabled : true
159
- Exclude :
160
- - spec/**/*
161
159
162
160
Performance/RangeInclude :
163
161
Enabled : true
Original file line number Diff line number Diff line change 1
- require 'ostruct'
2
1
require 'delayed_job'
3
2
require 'delayed/backend/base'
4
3
Original file line number Diff line number Diff line change 7
7
require 'active_support/json/encoding'
8
8
9
9
require 'rollbar/item'
10
- require 'ostruct'
11
10
12
11
require 'spec_helper'
13
12
242
241
notifier . configuration = configuration
243
242
allow_any_instance_of ( Net ::HTTP )
244
243
. to receive ( :request )
245
- . and_return ( OpenStruct . new ( : code => 500 , : body => 'Error' ) )
244
+ . and_return ( double ( code : 500 , body : 'Error' ) )
246
245
@uri = URI . parse ( Rollbar ::Configuration ::DEFAULT_ENDPOINT )
247
246
end
248
247
@@ -1518,7 +1517,7 @@ def backtrace
1518
1517
before do
1519
1518
allow_any_instance_of ( Net ::HTTP )
1520
1519
. to receive ( :request )
1521
- . and_return ( OpenStruct . new ( : code => 200 , : body => 'Success' ) )
1520
+ . and_return ( double ( code : 200 , body : 'Success' ) )
1522
1521
@env_vars = clear_proxy_env_vars
1523
1522
end
1524
1523
You can’t perform that action at this time.
0 commit comments