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
|
id: unowned_map.to_param
|
||||||
}
|
}
|
||||||
end.to change(Map, :count).by(0)
|
end.to change(Map, :count).by(0)
|
||||||
expect(response.body).to eq ''
|
expect(response.headers['Location']).to eq(request.base_url + root_path)
|
||||||
expect(response.status).to eq 403
|
expect(response.status).to eq 302
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'deletes owned map' do
|
it 'deletes owned map' do
|
||||||
|
|
Loading…
Add table
Reference in a new issue