Method: GdsApi::TestHelpers::AccountApi#stub_account_api_unauthorized_has_attributes

Defined in:
lib/gds_api/test_helpers/account_api.rb

#stub_account_api_unauthorized_has_attributes(attributes: [], **options) ⇒ Object



188
189
190
191
192
193
194
195
196
# File 'lib/gds_api/test_helpers/account_api.rb', line 188

def (attributes: [], **options)
  querystring = Rack::Utils.build_nested_query({ attributes: }.compact)
  (
    :get,
    "/api/attributes?#{querystring}",
    response_status: 401,
    **options,
  )
end