]> git.openstreetmap.org Git - rails.git/blobdiff - test/functional/relation_controller_test.rb
fixing the tests due to a osm -> diffChange and moving to floats
[rails.git] / test / functional / relation_controller_test.rb
index 5f23702db4c3891de137252bf70409a1977c07d6..4b265b5036c3e403d6ca216da2e7ec242eb59d01 100644 (file)
@@ -359,10 +359,10 @@ class RelationControllerTest < ActionController::TestCase
       assert_response :success, "can't re-read changeset for modify test"
       assert_select "osm>changeset", 1
       assert_select "osm>changeset[id=#{changeset_id}]", 1
-      assert_select "osm>changeset[min_lon=#{bbox[0]}]", 1
-      assert_select "osm>changeset[min_lat=#{bbox[1]}]", 1
-      assert_select "osm>changeset[max_lon=#{bbox[2]}]", 1
-      assert_select "osm>changeset[max_lat=#{bbox[3]}]", 1
+      assert_select "osm>changeset[min_lon=#{bbox[0].to_f}]", 1
+      assert_select "osm>changeset[min_lat=#{bbox[1].to_f}]", 1
+      assert_select "osm>changeset[max_lon=#{bbox[2].to_f}]", 1
+      assert_select "osm>changeset[max_lat=#{bbox[3].to_f}]", 1
     end
   end