metamaps--metamaps/spec/factories/mappings.rb

16 lines
279 B
Ruby
Raw Permalink Normal View History

2016-09-24 03:00:46 +00:00
# frozen_string_literal: true
2016-01-26 10:14:32 +00:00
FactoryGirl.define do
factory :mapping do
xloc 0
yloc 0
map
user
association :mappable, factory: :topic
2016-01-26 10:42:24 +00:00
factory :mapping_random_location do
xloc { rand(-100...100) }
yloc { rand(-100...100) }
end
2016-01-26 10:14:32 +00:00
end
end