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 (attributes: [], **options)
  querystring = Rack::Utils.build_nested_query({ attributes: }.compact)
  (
    :get,
    "/api/attributes?#{querystring}",
    response_status: 403,
    **options,
  )
end