Method: GdsApi::TestHelpers::AccountApi#stub_account_api_rejects_auth_response
- Defined in:
- lib/gds_api/test_helpers/account_api.rb
#stub_account_api_rejects_auth_response(code: nil, state: nil) ⇒ Object
43 44 45 46 47 |
# File 'lib/gds_api/test_helpers/account_api.rb', line 43 def stub_account_api_rejects_auth_response(code: nil, state: nil) stub_request(:post, "#{ACCOUNT_API_ENDPOINT}/api/oauth2/callback") .with(body: hash_including({ code:, state: }.compact)) .to_return(status: 401) end |