diff options
author | Shinya Maeda <shinya@gitlab.com> | 2018-12-04 13:24:21 +0300 |
---|---|---|
committer | Shinya Maeda <shinya@gitlab.com> | 2018-12-04 13:24:21 +0300 |
commit | e1449df7a2eccbdaeb807d60a1c67b249d6ec03e (patch) | |
tree | bdf46ae564f55fd0946d2520c005c18e8e83738e /spec/models/commit_status_spec.rb | |
parent | 5b24739eb30b6505ef652b526c7502bd961c5bc2 (diff) |
Fix coding offence
Diffstat (limited to 'spec/models/commit_status_spec.rb')
-rw-r--r-- | spec/models/commit_status_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/models/commit_status_spec.rb b/spec/models/commit_status_spec.rb index be339abee72..8b7c88805c1 100644 --- a/spec/models/commit_status_spec.rb +++ b/spec/models/commit_status_spec.rb @@ -1,8 +1,6 @@ require 'spec_helper' describe CommitStatus do - it_behaves_like 'having unique enum values' - set(:project) { create(:project, :repository) } set(:pipeline) do @@ -15,6 +13,8 @@ describe CommitStatus do create(:commit_status, pipeline: pipeline, **opts) end + it_behaves_like 'having unique enum values' + it { is_expected.to belong_to(:pipeline) } it { is_expected.to belong_to(:user) } it { is_expected.to belong_to(:project) } |