mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-31 04:32:06 +08:00
26 lines
935 B
Ruby
26 lines
935 B
Ruby
FactoryGirl.define do
|
|
factory :experiment do
|
|
name 'My Experiment'
|
|
description 'Lorem ipsum dolor sit amet, consectetuer adipiscing elit.'
|
|
end
|
|
|
|
factory :experiment_one, class: Experiment do
|
|
name 'My Experiment One'
|
|
description 'Lorem ipsum dolor sit amet, consectetuer adipiscing elit.'
|
|
association :project, factory: :project
|
|
association :created_by, factory: :user, email: Faker::Internet.email
|
|
association :last_modified_by,
|
|
factory: :user,
|
|
email: Faker::Internet.email
|
|
end
|
|
|
|
factory :experiment_two, class: Experiment do
|
|
name Faker::Name.name
|
|
description 'Lorem ipsum dolor sit amet, consectetuer adipiscing elit.'
|
|
association :project, factory: :project
|
|
association :created_by, factory: :user, email: Faker::Internet.email
|
|
association :last_modified_by,
|
|
factory: :user,
|
|
email: Faker::Internet.email
|
|
end
|
|
end
|