This commit is contained in:
Shinya Maeda 2018-11-06 13:37:15 +09:00
parent 56226498bf
commit 65a7a6e5a2
2 changed files with 1 additions and 16 deletions

View file

@ -278,6 +278,7 @@ describe 'Environments page', :js do
let!(:deployment) do
create(:deployment,
:success,
environment: environment,
deployable: build,
sha: project.commit.id)

View file

@ -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',