From e51503f6e677305e68ef9c55b060caff8f903872 Mon Sep 17 00:00:00 2001 From: marisa Date: Fri, 28 Feb 2020 12:36:07 +0100 Subject: [PATCH] Remove offers controller specs which were already on offers view specs --- spec/controllers/offers_controller_spec.rb | 21 +-------------------- 1 file changed, 1 insertion(+), 20 deletions(-) diff --git a/spec/controllers/offers_controller_spec.rb b/spec/controllers/offers_controller_spec.rb index 7d0619b89..5cb61af8d 100644 --- a/spec/controllers/offers_controller_spec.rb +++ b/spec/controllers/offers_controller_spec.rb @@ -100,11 +100,6 @@ get :show, id: offer.id expect(assigns(:destination_account)).to eq(member.account) end - - it 'displays the offer\'s user details' do - get :show, id: offer.id - expect(response.body).to include(offer.user.email) - end end end end @@ -118,11 +113,6 @@ allow(controller).to receive(:@current_organization).and_return(another_organization) end - it 'displays the offer\'s user details' do - get :show, id: offer.id - expect(response.body).to include(offer.user.email) - end - it 'sets the offer\'s organization as user\'s current organization' do get :show, id: offer.id expect(session[:current_organization_id]).to eq(offer.organization_id) @@ -136,11 +126,6 @@ let(:another_user) { Fabricate(:user) } before { login(another_user) } - - it 'doesn\'t display the offer\'s user details' do - get :show, id: offer.id - expect(response.body).to_not include(offer.user.email) - end end context 'when the user is not logged in' do @@ -148,11 +133,7 @@ get :show, id: offer.id expect(assigns(:offer)).to eq(offer) end - - it 'doesn\'t display the offer\'s user details' do - get :show, id: offer.id - expect(response.body).to_not include(offer.user.email) - end + end end