From 3792e747a7dad9d68b8c6e575929ee17cd852c77 Mon Sep 17 00:00:00 2001 From: Semyon Pupkov Date: Tue, 13 Dec 2016 22:46:06 +0500 Subject: [PATCH] Use build instead create in group spec --- spec/models/group_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/models/group_spec.rb b/spec/models/group_spec.rb index 850b1a3cf1e..c1ffba4d12c 100644 --- a/spec/models/group_spec.rb +++ b/spec/models/group_spec.rb @@ -273,7 +273,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) }