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) }