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

17 lines
323 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
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