summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--spec/features/projects/environments/environments_spec.rb1
-rw-r--r--spec/services/update_deployment_service_spec.rb16
2 files changed, 1 insertions, 16 deletions
diff --git a/spec/features/projects/environments/environments_spec.rb b/spec/features/projects/environments/environments_spec.rb
index 1e26c780237..d0ddf69d574 100644
--- a/spec/features/projects/environments/environments_spec.rb
+++ b/spec/features/projects/environments/environments_spec.rb
@@ -278,6 +278,7 @@ describe 'Environments page', :js do
let!(:deployment) do
create(:deployment,
+ :success,
environment: environment,
deployable: build,
sha: project.commit.id)
diff --git a/spec/services/update_deployment_service_spec.rb b/spec/services/update_deployment_service_spec.rb
index 572e1e9f14e..b963a84ca0c 100644
--- a/spec/services/update_deployment_service_spec.rb
+++ b/spec/services/update_deployment_service_spec.rb
@@ -66,22 +66,6 @@ describe UpdateDeploymentService do
end
end
- context 'when stop action is defined' do
- let(:options) { { name: 'production', action: 'stop' } }
-
- context 'and environment is available' do
- before do
- environment.start
- end
-
- it 'makes environment stopped' do
- subject
-
- expect(environment.reload).to be_stopped
- end
- end
- end
-
context 'when variables are used' do
let(:options) do
{ name: 'review-apps/$CI_COMMIT_REF_NAME',