X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/f2d13c075660efb9582d7fb600bd6798d7a382ca..c72940684ea5c702bf2963fae096a2d48d845267:/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