Skip to content

Commit f795874

Browse files
committed
Add reset to after
1 parent 14ac355 commit f795874

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

spec/cmab_client_spec.rb

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
require 'optimizely/cmab/cmab_client'
2121

2222
describe Optimizely::DefaultCmabClient do
23-
let!(:mock_http_client) { double('http_client') }
24-
let!(:spy_logger) { spy('logger') }
23+
let(:mock_http_client) { double('http_client') }
24+
let(:spy_logger) { spy('logger') }
2525
let(:retry_config) { Optimizely::CmabRetryConfig.new(max_retries: 3, retry_delay: 0.01, max_backoff: 1, backoff_multiplier: 2) }
2626
let(:client) { described_class.new(mock_http_client, nil, spy_logger) }
2727
let(:client_with_retry) { described_class.new(mock_http_client, retry_config, spy_logger) }
@@ -47,6 +47,9 @@
4747

4848
before do
4949
allow(Kernel).to receive(:sleep)
50+
end
51+
52+
after do
5053
RSpec::Mocks.space.proxy_for(mock_http_client).reset
5154
RSpec::Mocks.space.proxy_for(spy_logger).reset
5255
end

0 commit comments

Comments
 (0)