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

Fix spec

parent 56226498
...@@ -278,6 +278,7 @@ def stop_button_selector ...@@ -278,6 +278,7 @@ def stop_button_selector
let!(:deployment) do let!(:deployment) do
create(:deployment, create(:deployment,
:success,
environment: environment, environment: environment,
deployable: build, deployable: build,
sha: project.commit.id) sha: project.commit.id)
......
...@@ -66,22 +66,6 @@ ...@@ -66,22 +66,6 @@
end end
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 context 'when variables are used' do
let(:options) do let(:options) do
{ name: 'review-apps/$CI_COMMIT_REF_NAME', { 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