X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/e3ed9988ce5f57ed303326072f7f583b641e8774..400db5803633c92cf5ac0adf1ec7de32211aedea:/test/models/trace_test.rb?ds=sidebyside diff --git a/test/models/trace_test.rb b/test/models/trace_test.rb index f03488a61..81120f0e7 100644 --- a/test/models/trace_test.rb +++ b/test/models/trace_test.rb @@ -206,6 +206,10 @@ class TraceTest < ActiveSupport::TestCase trace.reload assert_equal 1, Tracepoint.where(:gpx_id => trace.id).count + + # Check that the tile has been set prior to the bulk import + # i.e. that the callbacks have been run correctly + assert_equal 3221331576, Tracepoint.where(:gpx_id => trace.id).first.tile end end