diff options
author | Semyon Pupkov <mail@semyonpupkov.com> | 2016-12-13 20:46:06 +0300 |
---|---|---|
committer | Semyon Pupkov <mail@semyonpupkov.com> | 2016-12-13 20:46:06 +0300 |
commit | 3792e747a7dad9d68b8c6e575929ee17cd852c77 (patch) | |
tree | 575a1798696f8e5449a4b34cb9074250d37d163a /spec/models | |
parent | 8f299a5825997eb279011d67565689d506bf7d66 (diff) |
Use build instead create in group spec
Diffstat (limited to 'spec/models')
-rw-r--r-- | spec/models/group_spec.rb | 2 |
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) } |