X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/f2d13c075660efb9582d7fb600bd6798d7a382ca..a70b61315c2331c18123a0b36782d6ef6bb3ab3e:/test/models/node_test.rb diff --git a/test/models/node_test.rb b/test/models/node_test.rb index f6f5be296..9ad968ae9 100644 --- a/test/models/node_test.rb +++ b/test/models/node_test.rb @@ -49,8 +49,8 @@ class NodeTest < ActiveSupport::TestCase def valid_node_test(nod) node = current_nodes(nod) dbnode = Node.find(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 / Node::SCALE + assert_equal dbnode.lon, node.longitude.to_f / Node::SCALE assert_equal dbnode.changeset_id, node.changeset_id assert_equal dbnode.timestamp, node.timestamp assert_equal dbnode.version, node.version @@ -65,8 +65,8 @@ class NodeTest < ActiveSupport::TestCase def invalid_node_test(nod) node = current_nodes(nod) dbnode = Node.find(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 / Node::SCALE + assert_equal dbnode.lon, node.longitude.to_f / Node::SCALE assert_equal dbnode.changeset_id, node.changeset_id assert_equal dbnode.timestamp, node.timestamp assert_equal dbnode.version, node.version