openstreetmap-website/test/factories/tracepoints.rb
Andy Allan 15689af6bf Replace trace-related fixtures with factories.
The mocking and stubbing in the controller tests is
unfortunate, but the models interact directly with the filesystem
using the trace id so that's hard to control any other way.
2016-10-29 16:23:04 +02:00

11 lines
214 B
Ruby

FactoryGirl.define do
factory :tracepoint do
trackid 1
latitude 1 * GeoRecord::SCALE
longitude 1 * GeoRecord::SCALE
# tile QuadTile.tile_for_point(1,1)
timestamp Time.now
trace
end
end