From 4e3d24a5c68e3ab951fe0cf388bdc2ea1fdc050e Mon Sep 17 00:00:00 2001 From: HombreLaser Date: Thu, 6 Apr 2023 11:48:20 -0600 Subject: Cambiar respuesta 303 de un delete por 204 --- spec/support/shared_examples/requests/delete_request.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'spec/support/shared_examples/requests/delete_request.rb') diff --git a/spec/support/shared_examples/requests/delete_request.rb b/spec/support/shared_examples/requests/delete_request.rb index caeaae0..95d516e 100644 --- a/spec/support/shared_examples/requests/delete_request.rb +++ b/spec/support/shared_examples/requests/delete_request.rb @@ -4,7 +4,7 @@ RSpec.shared_examples 'a DELETE request' do context 'for an existing resource' do it 'deletes the resource' do delete(resource, headers:) - expect(response).to have_http_status(303) + expect(response).to have_http_status(204) end end -- cgit v1.2.3