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

15 lines
249 B
Ruby
Raw Permalink Normal View History

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