From be6a2401b657fcccf4bf962c781df0456bed4a89 Mon Sep 17 00:00:00 2001 From: Devin Howard Date: Sat, 8 Oct 2016 13:42:25 +0800 Subject: [PATCH] fix spec. not sure how this should work --- spec/controllers/maps_controller_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/controllers/maps_controller_spec.rb b/spec/controllers/maps_controller_spec.rb index 0f053dd9..800ab4dc 100644 --- a/spec/controllers/maps_controller_spec.rb +++ b/spec/controllers/maps_controller_spec.rb @@ -79,8 +79,8 @@ RSpec.describe MapsController, type: :controller do id: unowned_map.to_param } end.to change(Map, :count).by(0) - expect(response.body).to eq '' - expect(response.status).to eq 403 + expect(response.headers['Location']).to eq(request.base_url + root_path) + expect(response.status).to eq 302 end it 'deletes owned map' do