diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-11-09 09:42:09 +0100 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-11-09 09:42:09 +0100 |
commit | f7ef7bea11012bef6d373ce3b3c43fac08b047fd (patch) | |
tree | e99ead5b9b7fd34477d29ef0d4792bd8e4e27689 /spec/services | |
parent | 04a8372cdfff501fe67c17612a0b5e098f7d56c9 (diff) | |
download | gitlab-ce-f7ef7bea11012bef6d373ce3b3c43fac08b047fd.tar.gz |
Add environment factory review app trait
Diffstat (limited to 'spec/services')
-rw-r--r-- | spec/services/ci/stop_environment_service_spec.rb | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/spec/services/ci/stop_environment_service_spec.rb b/spec/services/ci/stop_environment_service_spec.rb index 40b2a028f67..05e9e2d84cf 100644 --- a/spec/services/ci/stop_environment_service_spec.rb +++ b/spec/services/ci/stop_environment_service_spec.rb @@ -8,21 +8,8 @@ describe Ci::StopEnvironmentService, services: true do describe '#execute' do context 'when environment exists' do - let(:environment) { create(:environment, project: project) } - let(:deployable) { create(:ci_build) } - - let(:stop_build) do - create(:ci_build, :manual, name: 'environment/teardown', - pipeline: deployable.pipeline) - end - before do - create(:deployment, environment: environment, - deployable: deployable, - on_stop: stop_build.name, - user: user, - project: project, - sha: project.commit.id) + create(:environment, :with_review_app, project: project) end it 'stops environment' do |