Skip to content

Commit

Permalink
Stub again
Browse files Browse the repository at this point in the history
Fix the linter stub request
  • Loading branch information
jesusbv committed Nov 5, 2024
1 parent 29d7f5c commit e2dd8e6
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,12 @@

context 'when verification provider returns false' do
before do
WebMock.allow_net_connect!
stub_request(:post, scc_activate_url)
.to_return(
status: 200,
body: { ok: 'Unexpected instance verification error has occurred' }.to_json,
headers: {}
)
expect(InstanceVerification::Providers::Example).to receive(:new)
.with(be_a(ActiveSupport::Logger), be_a(ActionDispatch::Request), payload, instance_data).and_return(plugin_double)
expect(plugin_double).to receive(:instance_valid?).and_return(false)
Expand Down

0 comments on commit e2dd8e6

Please sign in to comment.