fix spec. not sure how this should work
This commit is contained in:
parent
129e3db946
commit
be6a2401b6
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue