From 7265af094ed16c36632128bccdcf84a3796c2359 Mon Sep 17 00:00:00 2001 From: HombreLaser Date: Sat, 25 Mar 2023 00:10:33 -0600 Subject: AƱade specs de addresscontroller MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- spec/support/shared_examples/requests/put_request.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'spec/support/shared_examples') diff --git a/spec/support/shared_examples/requests/put_request.rb b/spec/support/shared_examples/requests/put_request.rb index a85d842..1b6c518 100644 --- a/spec/support/shared_examples/requests/put_request.rb +++ b/spec/support/shared_examples/requests/put_request.rb @@ -12,7 +12,7 @@ RSpec.shared_examples 'a PUT request' do |account: false| context 'with incorrect parameters' do it 'returns a client side error http status and an error message' do put(route, params: wrong_params, headers:) - expect(response).to have_http_status(desired_error_status) + expect(response).to have_http_status(422) expect(response.body).to include_strings(expected_error_messages) end end -- cgit v1.2.3