Use build instead create in group spec

This commit is contained in:
Semyon Pupkov 2016-12-13 22:46:06 +05:00
parent 8f299a5825
commit 3792e747a7

View file

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