Skip to content

Commit

Permalink
Mock double
Browse files Browse the repository at this point in the history
  • Loading branch information
jesusbv committed Feb 20, 2025
1 parent a7be943 commit d4a946e
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@
context 'when verification provider raises an unhandled exception' do
before do
expect(InstanceVerification::Providers::Example).to receive(:new).and_return(plugin_double)
allow_any_instance_of(InstanceVerification::Providers::Example).to receive(:allowed_extension?).and_call_original
expect(plugin_double).to receive(:instance_valid?).and_return(false)
allow(InstanceVerification).to receive(:set_cache_inactive).and_return(nil)
stub_request(:post, scc_activate_url)
Expand Down

0 comments on commit d4a946e

Please sign in to comment.