Merge branch 'use-build-instead-create' into 'master'
Use build instead create in group spec See merge request !8068
This commit is contained in:
commit
18c58ed3fd
|
@ -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) }
|
||||
|
|
Loading…
Reference in New Issue