refactored factory + fixed tests
This commit is contained in:
parent
fa3ae24ca7
commit
d683ce5c10
3 changed files with 8 additions and 21 deletions
|
@ -13,6 +13,8 @@
|
|||
require 'spec_helper'
|
||||
|
||||
describe Group do
|
||||
let!(:group) { create(:group) }
|
||||
|
||||
it { should have_many :projects }
|
||||
it { should validate_presence_of :name }
|
||||
it { should validate_uniqueness_of(:name) }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue