summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 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) }