scinote-web/spec/factories/reports.rb

8 lines
186 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) }
name Faker::Name.unique.name
end
end