summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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