scinote-web/spec/factories/repository.rb
2017-08-30 13:30:41 +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