2016-09-24 03:00:46 +00:00
|
|
|
# frozen_string_literal: true
|
2017-11-06 16:15:18 +00:00
|
|
|
|
2015-10-19 07:23:49 +00:00
|
|
|
FactoryGirl.define do
|
|
|
|
factory :topic do
|
2015-12-17 15:45:38 +00:00
|
|
|
user
|
2017-02-09 21:53:19 +00:00
|
|
|
association :updated_by, factory: :user
|
2015-12-17 15:45:38 +00:00
|
|
|
metacode
|
2016-09-21 17:22:40 +00:00
|
|
|
permission :commons
|
|
|
|
sequence(:name) { |n| "Cool Topic ##{n}" }
|
|
|
|
sequence(:desc) { |n| "topic desc #{n}" }
|
|
|
|
sequence(:link) { |n| "https://metamaps.cc/maps/#{n}" }
|
2015-10-19 07:23:49 +00:00
|
|
|
end
|
|
|
|
end
|