scinote-web/spec/factories/projects.rb
2019-06-10 12:24:05 +02:00

11 lines
275 B
Ruby

# frozen_string_literal: true
FactoryBot.define do
factory :project do
sequence(:name) { |n| "My project-#{n}" }
association :created_by, factory: :user
team { create :team, created_by: created_by }
archived { false }
visibility { 'hidden' }
end
end