X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/4fb775d6d516857066e0d3cc86877ead3f6cae08..6afd13602c18946e33197397f88603b1c1bb5ceb:/test/controllers/way_controller_test.rb diff --git a/test/controllers/way_controller_test.rb b/test/controllers/way_controller_test.rb index 650977078..ae52c036f 100644 --- a/test/controllers/way_controller_test.rb +++ b/test/controllers/way_controller_test.rb @@ -74,7 +74,7 @@ class WayControllerTest < ActionController::TestCase way.nodes.each do |n| count = (way.nodes - (way.nodes - [n])).length assert_select "osm way nd[ref='#{n.id}']", count - assert_select "osm node[id='#{n.id}'][version='#{n.version}'][lat='#{n.lat}'][lon='#{n.lon}']", 1 + assert_select "osm node[id='#{n.id}'][version='#{n.version}'][lat='#{format('%.7f', n.lat)}'][lon='#{format('%.7f', n.lon)}']", 1 end end end