Fix spec
This commit is contained in:
parent
56226498bf
commit
65a7a6e5a2
2 changed files with 1 additions and 16 deletions
|
@ -278,6 +278,7 @@ describe 'Environments page', :js do
|
|||
|
||||
let!(:deployment) do
|
||||
create(:deployment,
|
||||
:success,
|
||||
environment: environment,
|
||||
deployable: build,
|
||||
sha: project.commit.id)
|
||||
|
|
|
@ -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',
|
||||
|
|
Loading…
Reference in a new issue