Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbokebilly <fobio@gitlab.com>2017-09-16 16:02:37 +0300
committerKamil Trzcinski <ayufan@ayufan.eu>2017-09-19 16:32:31 +0300
commit3017697701eaecd301edfbc2e4f7c865456f1b0f (patch)
treeb5d4e52c5de0c42929f145607efdb1972d5949fa /spec/models/project_auto_devops_spec.rb
parent4c6c105909ea610eac760b05e66d9efc57cbb43c (diff)
Add warning message if domain or cluster are not configured
Diffstat (limited to 'spec/models/project_auto_devops_spec.rb')
-rw-r--r--spec/models/project_auto_devops_spec.rb8
1 files changed, 7 insertions, 1 deletions
diff --git a/spec/models/project_auto_devops_spec.rb b/spec/models/project_auto_devops_spec.rb
index ca13af4d73e..f4bb4b3e7a3 100644
--- a/spec/models/project_auto_devops_spec.rb
+++ b/spec/models/project_auto_devops_spec.rb
@@ -8,7 +8,13 @@ describe ProjectAutoDevops do
it { is_expected.to respond_to(:created_at) }
it { is_expected.to respond_to(:updated_at) }
- describe 'variables' do
+ describe '#has_domain?' do
+ let(:auto_devops) { build_stubbed(:project_auto_devops, project: project, domain: 'domain.com') }
+
+ it { is_expected.to have_domain }
+ end
+
+ describe '#variables' do
let(:auto_devops) { build_stubbed(:project_auto_devops, project: project, domain: domain) }
context 'when domain is defined' do