metamaps--metamaps/spec/factories/topics.rb

12 lines
281 B
Ruby
Raw Permalink Normal View History

2016-09-24 03:00:46 +00:00
# frozen_string_literal: true
2015-10-19 07:23:49 +00:00
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}" }
2015-10-19 07:23:49 +00:00
end
end