scinote-web/spec/factories/samples.rb

8 lines
152 B
Ruby
Raw Normal View History

FactoryBot.define do
2017-07-26 22:16:08 +08:00
factory :sample do
name 'Sample'
2017-07-28 16:14:50 +08:00
user { User.first || create(:user) }
team { Team.first || create(:team) }
2017-07-26 22:16:08 +08:00
end
end