]> git.openstreetmap.org Git - rails.git/blobdiff - test/functional/api_controller_test.rb
Fixed up way controller tests for API 0.6.
[rails.git] / test / functional / api_controller_test.rb
index 05cbe2af0ac5d8ab4a33816dfb30485e3dde1c72..4c4787ff76e0e0e05e0da2971ad983f0098bf944 100644 (file)
@@ -23,7 +23,7 @@ class ApiControllerTest < Test::Unit::TestCase
 
   def test_map
     node = current_nodes(:used_node_1)
-    bbox = "#{node.latitude-0.1},#{node.longitude-0.1},#{node.latitude+0.1},#{node.longitude+0.1}"
+    bbox = "#{node.lat-0.1},#{node.lon-0.1},#{node.lat+0.1},#{node.lon+0.1}"
     get :map, :bbox => bbox
     if $VERBOSE
         print @response.body