diff options
author | Matija Čupić <matteeyah@gmail.com> | 2018-06-07 15:58:09 +0300 |
---|---|---|
committer | Matija Čupić <matteeyah@gmail.com> | 2018-06-07 15:58:09 +0300 |
commit | 637b90db6edbd13d15289bf0d8d2c442d05442f0 (patch) | |
tree | 7c9291f141b7d49ae149bc4b7f617cf092eff8c5 | |
parent | 616dd00abbd09e6ef550e2eb877ae9fe2b28812b (diff) |
Add spec for continuous deploy strategy
-rw-r--r-- | spec/models/project_auto_devops_spec.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/spec/models/project_auto_devops_spec.rb b/spec/models/project_auto_devops_spec.rb index 040e76e28fc..f9ee9fe98bd 100644 --- a/spec/models/project_auto_devops_spec.rb +++ b/spec/models/project_auto_devops_spec.rb @@ -82,6 +82,19 @@ describe ProjectAutoDevops do end end + context 'when deploy_strategy is continuous' do + let(:domain) { 'example.com' } + + before do + auto_devops.deploy_strategy = 'continuous' + end + + it do + expect(auto_devops.predefined_variables.map { |var| var[:key] }) + .not_to include("STAGING_ENABLED", "INCREMENTAL_ROLLOUT_ENABLED") + end + end + def domain_variable { key: 'AUTO_DEVOPS_DOMAIN', value: 'example.com', public: true } end |