diff options
Diffstat (limited to 'spec/support/shared_examples/requests/post_request.rb')
-rw-r--r-- | spec/support/shared_examples/requests/post_request.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/spec/support/shared_examples/requests/post_request.rb b/spec/support/shared_examples/requests/post_request.rb index c7b8d77..55d35a4 100644 --- a/spec/support/shared_examples/requests/post_request.rb +++ b/spec/support/shared_examples/requests/post_request.rb @@ -1,11 +1,9 @@ # frozen_string_literal: true RSpec.shared_examples 'a POST request' do - let(:headers) { { 'CONTENT_TYPE' => 'application/json' } } - context 'with correct parameters' do it 'returns a successful http status and a response with the posted data' do - post(route, params: params, headers:) + post(route, params:, headers:) expect(response).to have_http_status(200) expect(response.body).to include_strings(expected_text) end |