Skip to content
This repository was archived by the owner on Jun 2, 2021. It is now read-only.

Commit 1cf6e68

Browse files
author
Brian Butz
committed
Use allow().and_return instead of stub
1 parent 861bda8 commit 1cf6e68

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

spec/unit/jobs/v3/update_service_instance_job_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ module V3
6767
let(:client) { double('BrokerClient', update: update_response) }
6868

6969
before do
70-
VCAP::Services::ServiceClientProvider.stub(:provide) { client }
70+
allow(VCAP::Services::ServiceClientProvider).to receive(:provide).and_return(client)
7171
end
7272

7373
describe '#operation' do

0 commit comments

Comments
 (0)