remove map screenshot tests for now. maps controller spec passes

This commit is contained in:
Devin Howard 2016-02-09 11:59:04 +08:00
parent 43bdda61de
commit f3f8bfbea8

View file

@ -55,15 +55,13 @@ RSpec.describe MapsController, type: :controller do
describe 'PUT #update' do
context 'with valid params' do
let(:new_attributes) do
skip('Add a hash of attributes valid for your model')
end
let(:new_attributes) { { name: "Uncool map", permission: :private } }
it 'updates the requested map' do
put :update,
{ id: map.to_param, map: new_attributes, format: :json }
map.reload
skip('Add assertions for updated state')
expect(assigns(:map).name).to eq "Uncool map"
expect(assigns(:map).permission).to eq 'private'
end
it 'assigns the requested map as @map' do
@ -82,16 +80,6 @@ RSpec.describe MapsController, type: :controller do
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
let(:unowned_map) { create(:map) }
let(:owned_map) { create(:map, user: controller.current_user) }