metamaps--metamaps/spec/factories/topics.rb
2016-09-24 11:00:46 +08:00

11 lines
281 B
Ruby

# frozen_string_literal: true
FactoryGirl.define do
factory :topic do
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