Merge branch 'use-build-instead-create' into 'master'

Use build instead create in group spec

See merge request !8068
This commit is contained in:
Rémy Coutable 2016-12-15 16:46:10 +00:00
commit 18c58ed3fd

View file

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