From: Shaun McDonald Date: Wed, 6 May 2009 17:56:10 +0000 (+0000) Subject: fixing the tests I broke earlier due to the fixture changes X-Git-Tag: live~7475 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/e509850554db7b46d2397cb8b8818bd7138b5f5d?ds=sidebyside fixing the tests I broke earlier due to the fixture changes --- diff --git a/test/functional/api_controller_test.rb b/test/functional/api_controller_test.rb index fdb36628e..285556cd8 100644 --- a/test/functional/api_controller_test.rb +++ b/test/functional/api_controller_test.rb @@ -59,7 +59,7 @@ class ApiControllerTest < ActionController::TestCase end def test_tracepoints - point = gpx_files(:first_trace_file) + point = gpx_files(:public_trace_file) minlon = point.longitude-0.1 minlat = point.latitude-0.1 maxlon = point.longitude+0.1 diff --git a/test/unit/trace_test.rb b/test/unit/trace_test.rb index 638003962..f3fe1b769 100644 --- a/test/unit/trace_test.rb +++ b/test/unit/trace_test.rb @@ -4,7 +4,7 @@ class TraceTest < Test::Unit::TestCase api_fixtures def test_trace_count - assert_equal 1, Trace.count + assert_equal 2, Trace.count end end