summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZ.J. van de Weg <zegerjan@gitlab.com>2016-10-10 20:09:05 +0200
committerZ.J. van de Weg <zegerjan@gitlab.com>2016-10-10 20:12:33 +0200
commit1ce4acbd5532598e4762dfb7eecc813cb06e6888 (patch)
treee32bef31722269f39821e3150026e29c5d4b5d27
parentaad504d1ad172c8f9f0c31687077a9d9119980e7 (diff)
downloadgitlab-ce-zj-mattermost-slash-commands.tar.gz
Fix deploy slash commandzj-mattermost-slash-commands
-rw-r--r--spec/services/mattermost/deploy_service_spec.rb27
1 files changed, 0 insertions, 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