Use build instead create in group spec
This commit is contained in:
parent
8f299a5825
commit
3792e747a7
1 changed files with 1 additions and 1 deletions
|
@ -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) }
|
||||
|
|
Loading…
Reference in a new issue