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

18 lines
324 B
Ruby
Raw Permalink Normal View History

2016-09-24 03:00:46 +00:00
# frozen_string_literal: true
2017-11-06 16:15:18 +00:00
2016-01-26 10:14:32 +00:00
FactoryGirl.define do
factory :mapping do
xloc 0
yloc 0
map
user
2016-12-16 22:08:57 +00:00
association :updated_by, factory: :user
2016-01-26 10:14:32 +00:00
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