scinote-web/spec/factories/repository.rb

8 lines
170 B
Ruby
Raw Normal View History

2017-08-30 00:49:07 +08:00
FactoryGirl.define do
factory :repository do
name 'My Repository'
created_by { User.first || create(:user) }
team { Team.first || create(:team) }
end
end