From 1ce4acbd5532598e4762dfb7eecc813cb06e6888 Mon Sep 17 00:00:00 2001 From: "Z.J. van de Weg" Date: Mon, 10 Oct 2016 20:09:05 +0200 Subject: Fix deploy slash command --- spec/services/mattermost/deploy_service_spec.rb | 27 ------------------------- 1 file changed, 27 deletions(-) diff --git a/spec/services/mattermost/deploy_service_spec.rb b/spec/services/mattermost/deploy_service_spec.rb index 1622ec4ae1a..5e6f44518a8 100644 --- a/spec/services/mattermost/deploy_service_spec.rb +++ b/spec/services/mattermost/deploy_service_spec.rb @@ -22,33 +22,6 @@ describe Mattermost::DeployService, services: true do end context 'the environment exists' do - let!(:deployment) { create(:deployment) } - let(:project) { deployment.environment.project } - - context 'the user has no access' do - it_behaves_like 'a 404 response' - end - - context 'the user has access' do - before do - project.team << [user, :master] - end - - let(:user) { create(:user) } - let(:pipeline) { create(:pipeline) } - let!(:build) { create(:build, :manual) } - let(:params) { { text: "#{environment.name} to #{build.name}" } } - - it 'informs the user when it does not exist' do - it_behaves_like 'a 404 response' - end - - it 'executes the action if it exists' do - allow(deployment).to receive(:manual_actions).and_return([build]) - - expect(build).to receive(:manual_actions) - end - end end end end -- cgit v1.2.1