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:
authorRémy Coutable <remy@rymai.me>2016-12-15 19:46:10 +0300
committerRémy Coutable <remy@rymai.me>2016-12-15 19:46:10 +0300
commit18c58ed3fd635cd148f4c66b9c0cc825799abcbd (patch)
treec197693555043d9bcab119def9aef090de7be1aa /spec/models/group_spec.rb
parenta84c6b1abc5a2e456581d9da647286383a2fceea (diff)
parent3792e747a7dad9d68b8c6e575929ee17cd852c77 (diff)
Merge branch 'use-build-instead-create' into 'master'
Use build instead create in group spec See merge request !8068
Diffstat (limited to 'spec/models/group_spec.rb')
-rw-r--r--spec/models/group_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/models/group_spec.rb b/spec/models/group_spec.rb
index 893c6827a91..7d5ecfbaa64 100644
--- a/spec/models/group_spec.rb
+++ b/spec/models/group_spec.rb
@@ -272,7 +272,7 @@ describe Group, models: true do
end
describe 'nested group' do
- subject { create(:group, :nested) }
+ subject { build(:group, :nested) }
it { is_expected.to be_valid }
it { expect(subject.parent).to be_kind_of(Group) }