Method: GdsApi::TestHelpers::AccountApi#stub_account_api_has_attributes

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

#stub_account_api_has_attributes(attributes: [], values: {}, **options) ⇒ Object

GET /api/attributes



178
179
180
181
182
183
184
185
186
# File 'lib/gds_api/test_helpers/account_api.rb', line 178

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