Skip to content

Commit

Permalink
add stub request ok response
Browse files Browse the repository at this point in the history
  • Loading branch information
jesusbv committed Nov 4, 2024
1 parent 80fac36 commit c2f56d3
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,13 @@

context 'when verification provider returns false' do
before do
stub_request(:post, scc_activate_url)
.to_return(
status: 200,
body: { ok: 'ok' }.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 c2f56d3

Please sign in to comment.