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.
11 lines
214 B
Ruby
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
|