Method: GdsApi::TestHelpers::AccountApi#stub_account_api_forbidden_has_attributes
- Defined in:
- lib/gds_api/test_helpers/account_api.rb
#stub_account_api_forbidden_has_attributes(attributes: [], **options) ⇒ Object
198 199 200 201 202 203 204 205 206 |
# File 'lib/gds_api/test_helpers/account_api.rb', line 198 def stub_account_api_forbidden_has_attributes(attributes: [], **) querystring = Rack::Utils.build_nested_query({ attributes: }.compact) stub_account_api_request( :get, "/api/attributes?#{querystring}", response_status: 403, **, ) end |