diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2017-06-13 10:17:11 +0200 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2017-06-13 15:45:45 +0200 |
commit | 26820d1f5d950a3430737b350b664bfdf7622ba6 (patch) | |
tree | 5930a1b6e93fd1fd835460dc067b7f19df9073ce /spec/models/environment_spec.rb | |
parent | 652eb0118b3cf87f96dfbaacf5802d974303e427 (diff) | |
download | gitlab-ce-26820d1f5d950a3430737b350b664bfdf7622ba6.tar.gz |
Do not show manual actions that cannot be runfix-manual-actions
Diffstat (limited to 'spec/models/environment_spec.rb')
-rw-r--r-- | spec/models/environment_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/models/environment_spec.rb b/spec/models/environment_spec.rb index fe69c8e351d..f8123cb518e 100644 --- a/spec/models/environment_spec.rb +++ b/spec/models/environment_spec.rb @@ -170,7 +170,7 @@ describe Environment, models: true do context 'when matching action is defined' do let(:build) { create(:ci_build) } let!(:deployment) { create(:deployment, environment: environment, deployable: build, on_stop: 'close_app') } - let!(:close_action) { create(:ci_build, pipeline: build.pipeline, name: 'close_app', when: :manual) } + let!(:close_action) { create(:ci_build, :manual, pipeline: build.pipeline, name: 'close_app') } context 'when environment is available' do before do |