]> git.openstreetmap.org Git - rails.git/blobdiff - test/controllers/amf_controller_test.rb
Be explicit in which traces are expected.
[rails.git] / test / controllers / amf_controller_test.rb
index 7c8c64ba085813f597d7353a9f86a8c49e5a024b..8f58aa980fb3c8aef0b4e9f6ee1e5c2ad8febe14 100644 (file)
@@ -473,7 +473,7 @@ class AmfControllerTest < ActionController::TestCase
   end
 
   def test_findgpx_by_id
   end
 
   def test_findgpx_by_id
-    trace = gpx_files(:anon_trace_file)
+    trace = create(:trace, :visibility => "private", :user => users(:public_user))
 
     amf_content "findgpx", "/1", [trace.id, "test@example.com:test"]
     post :amf_read
 
     amf_content "findgpx", "/1", [trace.id, "test@example.com:test"]
     post :amf_read