Skip to content
Snippets Groups Projects
Commit 65a7a6e5 authored by Shinya Maeda's avatar Shinya Maeda
Browse files

Fix spec

parent 56226498
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -278,6 +278,7 @@ def stop_button_selector
 
let!(:deployment) do
create(:deployment,
:success,
environment: environment,
deployable: build,
sha: project.commit.id)
Loading
Loading
Loading
Loading
@@ -66,22 +66,6 @@
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
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment