diff options
Diffstat (limited to 'spec/controllers/projects/settings/ci_cd_controller_spec.rb')
-rw-r--r-- | spec/controllers/projects/settings/ci_cd_controller_spec.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/controllers/projects/settings/ci_cd_controller_spec.rb b/spec/controllers/projects/settings/ci_cd_controller_spec.rb index a1dbd27f49a..63c870eb133 100644 --- a/spec/controllers/projects/settings/ci_cd_controller_spec.rb +++ b/spec/controllers/projects/settings/ci_cd_controller_spec.rb @@ -325,6 +325,14 @@ RSpec.describe Projects::Settings::CiCdController, feature_category: :continuous end end + context 'when changing forward_deployment_rollback_allowed' do + let(:params) { { ci_cd_settings_attributes: { forward_deployment_rollback_allowed: false } } } + + it 'changes forward deployment rollback allowed' do + expect { subject }.to change { project.reload.ci_forward_deployment_rollback_allowed }.from(true).to(false) + end + end + context 'when max_artifacts_size is specified' do let(:params) { { max_artifacts_size: 10 } } |