metamaps--metamaps/spec/factories/topics.rb
2018-03-10 08:10:09 -08:00

13 lines
325 B
Ruby

# frozen_string_literal: true
FactoryBot.define do
factory :topic do
user
association :updated_by, factory: :user
metacode
permission :commons
sequence(:name) { |n| "Cool Topic ##{n}" }
sequence(:desc) { |n| "topic desc #{n}" }
sequence(:link) { |n| "https://metamaps.cc/maps/#{n}" }
end
end