diff options
author | Dylan Griffith <dyl.griffith@gmail.com> | 2018-09-18 19:20:43 +0000 |
---|---|---|
committer | Kamil TrzciĆski <ayufan@ayufan.eu> | 2018-09-18 19:20:43 +0000 |
commit | d236a6c2b2e22199367c6e17c470523b587374ab (patch) | |
tree | 30c38895821994be8a24f0edbc0d555a8519b5d1 /spec/helpers/auto_devops_helper_spec.rb | |
parent | 354f0bccbf8d530fbb5a1eb2b3cea931c644cc59 (diff) | |
download | gitlab-ce-d236a6c2b2e22199367c6e17c470523b587374ab.tar.gz |
Resolve "Enable Auto DevOps by default for self managed instances of GitLab"
Diffstat (limited to 'spec/helpers/auto_devops_helper_spec.rb')
-rw-r--r-- | spec/helpers/auto_devops_helper_spec.rb | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/spec/helpers/auto_devops_helper_spec.rb b/spec/helpers/auto_devops_helper_spec.rb index 1950c2b129b..75c30dbfe48 100644 --- a/spec/helpers/auto_devops_helper_spec.rb +++ b/spec/helpers/auto_devops_helper_spec.rb @@ -16,7 +16,15 @@ describe AutoDevopsHelper do subject { helper.show_auto_devops_callout?(project) } - context 'when all conditions are met' do + context 'when auto devops is implicitly enabled' do + it { is_expected.to eq(false) } + end + + context 'when auto devops is not implicitly enabled' do + before do + Gitlab::CurrentSettings.update!(auto_devops_enabled: false) + end + it { is_expected.to eq(true) } end |