diff options
author | Shinya Maeda <shinya@gitlab.com> | 2018-12-03 15:47:26 +0300 |
---|---|---|
committer | Shinya Maeda <shinya@gitlab.com> | 2018-12-03 15:47:26 +0300 |
commit | bec4740f30425aa7d0db30c7afa846a151091c2a (patch) | |
tree | bd1b4ea1fbbe95739c1defbe8f7424fb5bfdeb10 /spec/models/project_auto_devops_spec.rb | |
parent | 328d1a93857852bc897b472b0eba57e9a977b133 (diff) |
Fix the coding style
Diffstat (limited to 'spec/models/project_auto_devops_spec.rb')
-rw-r--r-- | spec/models/project_auto_devops_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/models/project_auto_devops_spec.rb b/spec/models/project_auto_devops_spec.rb index cf9e6ccf87b..306705e15a8 100644 --- a/spec/models/project_auto_devops_spec.rb +++ b/spec/models/project_auto_devops_spec.rb @@ -1,6 +1,8 @@ require 'spec_helper' describe ProjectAutoDevops do + it_behaves_like 'Unique enum values' + set(:project) { build(:project) } it { is_expected.to belong_to(:project) } @@ -10,8 +12,6 @@ describe ProjectAutoDevops do it { is_expected.to respond_to(:created_at) } it { is_expected.to respond_to(:updated_at) } - it_behaves_like 'Unique enum values' - describe '#has_domain?' do context 'when domain is defined' do let(:auto_devops) { build_stubbed(:project_auto_devops, project: project, domain: 'domain.com') } |