scinote-web/spec/factories/reports.rb

9 lines
232 B
Ruby
Raw Normal View History

FactoryBot.define do
2017-07-28 16:14:50 +08:00
factory :report do
user { User.first || association(:user) }
project { Project.first || association(:project) }
team { Team.first || association(:team) }
2017-07-28 16:14:50 +08:00
name Faker::Name.unique.name
end
end