remove map screenshot tests for now. maps controller spec passes
This commit is contained in:
parent
43bdda61de
commit
f3f8bfbea8
1 changed files with 3 additions and 15 deletions
|
@ -55,15 +55,13 @@ RSpec.describe MapsController, type: :controller do
|
||||||
|
|
||||||
describe 'PUT #update' do
|
describe 'PUT #update' do
|
||||||
context 'with valid params' do
|
context 'with valid params' do
|
||||||
let(:new_attributes) do
|
let(:new_attributes) { { name: "Uncool map", permission: :private } }
|
||||||
skip('Add a hash of attributes valid for your model')
|
|
||||||
end
|
|
||||||
|
|
||||||
it 'updates the requested map' do
|
it 'updates the requested map' do
|
||||||
put :update,
|
put :update,
|
||||||
{ id: map.to_param, map: new_attributes, format: :json }
|
{ id: map.to_param, map: new_attributes, format: :json }
|
||||||
map.reload
|
expect(assigns(:map).name).to eq "Uncool map"
|
||||||
skip('Add assertions for updated state')
|
expect(assigns(:map).permission).to eq 'private'
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'assigns the requested map as @map' do
|
it 'assigns the requested map as @map' do
|
||||||
|
@ -82,16 +80,6 @@ RSpec.describe MapsController, type: :controller do
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
describe 'update the map screenshot' do
|
|
||||||
it 'successfully if authorized' do
|
|
||||||
skip
|
|
||||||
end
|
|
||||||
|
|
||||||
it 'unsucessfully if not authorized' do
|
|
||||||
skip
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
describe 'DELETE #destroy' do
|
describe 'DELETE #destroy' do
|
||||||
let(:unowned_map) { create(:map) }
|
let(:unowned_map) { create(:map) }
|
||||||
let(:owned_map) { create(:map, user: controller.current_user) }
|
let(:owned_map) { create(:map, user: controller.current_user) }
|
||||||
|
|
Loading…
Reference in a new issue