mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-29 11:45:18 +08:00
88d7429041
2. fixes gem dependencies issues 3. fixes failing migrations 4. updates depricated factory_girl => factory_bot and fixes related issues Signed-off-by: zmagod <zmago_devetak@yahoo.com>
24 lines
646 B
Ruby
24 lines
646 B
Ruby
FactoryBot.define do
|
|
factory :project do
|
|
created_by { User.first || association(:project_user) }
|
|
team { Team.first || association(:project_team) }
|
|
archived false
|
|
name 'My project'
|
|
visibility 'hidden'
|
|
end
|
|
|
|
factory :project_user, class: User do
|
|
full_name Faker::Name.name
|
|
initials 'AD'
|
|
email Faker::Internet.email
|
|
password 'asdf1243'
|
|
password_confirmation 'asdf1243'
|
|
end
|
|
|
|
factory :project_team, class: Team do
|
|
created_by { User.first || association(:project_user) }
|
|
name 'My team'
|
|
description 'Lorem ipsum dolor sit amet, consectetuer adipiscing eli.'
|
|
space_taken 1048576
|
|
end
|
|
end
|