X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/0a1834af6372a03cdc04c1f59cbbb3bbc99b7e49..396f2e28dd27d514f7882c3918103b12764038de:/test/controllers/relation_controller_test.rb diff --git a/test/controllers/relation_controller_test.rb b/test/controllers/relation_controller_test.rb index 7dfc58dec..afdab1bf2 100644 --- a/test/controllers/relation_controller_test.rb +++ b/test/controllers/relation_controller_test.rb @@ -741,15 +741,15 @@ class RelationControllerTest < ActionController::TestCase basic_authorization(user.email, "test") - doc_str = < - - - - - - - + doc_str = < + + + + + + + OSM doc = XML::Parser.string(doc_str).parse @@ -801,15 +801,15 @@ OSM node1 = create(:node) node2 = create(:node) - doc_str = < - - - - - - - + doc_str = < + + + + + + + OSM doc = XML::Parser.string(doc_str).parse @@ -844,15 +844,15 @@ OSM node3 = create(:node) node4 = create(:node) - doc_str = < - - - - - - - + doc_str = < + + + + + + + OSM doc = XML::Parser.string(doc_str).parse basic_authorization(user.email, "test") @@ -967,10 +967,10 @@ OSM assert_response :success, "can't re-read changeset for modify test" assert_select "osm>changeset", 1, "Changeset element doesn't exist in #{@response.body}" assert_select "osm>changeset[id='#{changeset_id}']", 1, "Changeset id=#{changeset_id} doesn't exist in #{@response.body}" - assert_select "osm>changeset[min_lon='#{bbox.min_lon}']", 1, "Changeset min_lon wrong in #{@response.body}" - assert_select "osm>changeset[min_lat='#{bbox.min_lat}']", 1, "Changeset min_lat wrong in #{@response.body}" - assert_select "osm>changeset[max_lon='#{bbox.max_lon}']", 1, "Changeset max_lon wrong in #{@response.body}" - assert_select "osm>changeset[max_lat='#{bbox.max_lat}']", 1, "Changeset max_lat wrong in #{@response.body}" + assert_select "osm>changeset[min_lon='#{format('%.7f', bbox.min_lon)}']", 1, "Changeset min_lon wrong in #{@response.body}" + assert_select "osm>changeset[min_lat='#{format('%.7f', bbox.min_lat)}']", 1, "Changeset min_lat wrong in #{@response.body}" + assert_select "osm>changeset[max_lon='#{format('%.7f', bbox.max_lon)}']", 1, "Changeset max_lon wrong in #{@response.body}" + assert_select "osm>changeset[max_lat='#{format('%.7f', bbox.max_lat)}']", 1, "Changeset max_lat wrong in #{@response.body}" end end