scinote-web/spec/factories/repository.rb
2017-07-28 10:14:50 +02:00

7 lines
170 B
Ruby

FactoryGirl.define do
factory :repository do
name 'My Repository'
created_by { User.first || create(:user) }
team { Team.first || create(:team) }
end
end