scinote-web/spec/factories/projects.rb

12 lines
275 B
Ruby
Raw Normal View History

2019-01-10 01:30:33 +08:00
# frozen_string_literal: true
FactoryBot.define do
2017-07-10 20:38:18 +08:00
factory :project do
2019-01-10 01:30:33 +08:00
sequence(:name) { |n| "My project-#{n}" }
association :created_by, factory: :user
team { create :team, created_by: created_by }
archived { false }
visibility { 'hidden' }
2017-07-10 20:38:18 +08:00
end
end