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