metamaps--metamaps/spec/factories/topics.rb
2017-02-09 16:53:19 -05:00

12 lines
325 B
Ruby

# frozen_string_literal: true
FactoryGirl.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