From 6b3cc5c3a33643c0e42396142a2d3204ada2bb82 Mon Sep 17 00:00:00 2001 From: HombreLaser Date: Sat, 11 Mar 2023 11:42:32 -0600 Subject: AƱade spec de update company MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- spec/support/shared_examples/requests/post_request.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'spec/support/shared_examples/requests/post_request.rb') 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 -- cgit v1.2.3