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

17 lines
323 B
Ruby

# frozen_string_literal: true
FactoryBot.define do
factory :mapping do
xloc 0
yloc 0
map
user
association :updated_by, factory: :user
association :mappable, factory: :topic
factory :mapping_random_location do
xloc { rand(-100...100) }
yloc { rand(-100...100) }
end
end
end