X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/0de7fdb4dfb3d70de5ad1fdff3578456ed94944b..24476ec2055fec0045d8fc64ea781dfc1390524a:/test/models/old_node_test.rb diff --git a/test/models/old_node_test.rb b/test/models/old_node_test.rb index 2ccf6d18c..cdc31f4f1 100644 --- a/test/models/old_node_test.rb +++ b/test/models/old_node_test.rb @@ -49,8 +49,8 @@ class OldNodeTest < ActiveSupport::TestCase def valid_node_test(nod) node = nodes(nod) dbnode = Node.find(node.node_id) - assert_equal dbnode.lat, node.latitude.to_f/SCALE - assert_equal dbnode.lon, node.longitude.to_f/SCALE + assert_equal dbnode.lat, node.latitude.to_f / OldNode::SCALE + assert_equal dbnode.lon, node.longitude.to_f / OldNode::SCALE assert_equal dbnode.changeset_id, node.changeset_id assert_equal dbnode.version, node.version assert_equal dbnode.visible, node.visible @@ -65,8 +65,8 @@ class OldNodeTest < ActiveSupport::TestCase def invalid_node_test(nod) node = nodes(nod) dbnode = Node.find(node.node_id) - assert_equal dbnode.lat, node.latitude.to_f/SCALE - assert_equal dbnode.lon, node.longitude.to_f/SCALE + assert_equal dbnode.lat, node.latitude.to_f / OldNode::SCALE + assert_equal dbnode.lon, node.longitude.to_f / OldNode::SCALE assert_equal dbnode.changeset_id, node.changeset_id assert_equal dbnode.version, node.version assert_equal dbnode.visible, node.visible