Skip to content

Commit 54a8a0c

Browse files
committed
Fix warning about stubbing a method on nil
1 parent 6dac1b8 commit 54a8a0c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

spec/jobs/nbp_sync_job_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
let(:uuid) { task.uuid }
88

99
before do
10-
allow(Nbp::PushConnector).to receive(:instance)
10+
allow(Nbp::PushConnector).to receive(:instance).and_return(instance_double(Nbp::PushConnector))
1111
allow(Nbp::PushConnector.instance).to receive(:push_lom!)
1212
allow(Nbp::PushConnector.instance).to receive(:delete_task!)
1313
end

0 commit comments

Comments
 (0)