Commit 65a7a6e5 authored by Shinya Maeda's avatar Shinya Maeda

Fix spec

parent 56226498
......@@ -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',
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment