summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShinya Maeda <shinya@gitlab.com>2018-11-06 13:37:15 +0900
committerShinya Maeda <shinya@gitlab.com>2018-11-06 13:37:15 +0900
commit65a7a6e5a26cd4a5141a12f6694e4897336e46b9 (patch)
treec634ded28ff947bb861e032ff12969106ef1287a
parent56226498bf74f3b8c31d76bd99e35af68ad7d2f4 (diff)
downloadgitlab-ce-65a7a6e5a26cd4a5141a12f6694e4897336e46b9.tar.gz
Fix spec
-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',