From f3f8bfbea8fe418786a61db87703b946e1af5e15 Mon Sep 17 00:00:00 2001 From: Devin Howard Date: Tue, 9 Feb 2016 11:59:04 +0800 Subject: [PATCH] remove map screenshot tests for now. maps controller spec passes --- spec/controllers/maps_controller_spec.rb | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/spec/controllers/maps_controller_spec.rb b/spec/controllers/maps_controller_spec.rb index 4c85f9b1..b2f0abec 100644 --- a/spec/controllers/maps_controller_spec.rb +++ b/spec/controllers/maps_controller_spec.rb @@ -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) }