X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/34e3e51456774127d43408b7ab65c24f41373f62..76d365ce71b942466d07480ded13098860d4f1b3:/test/models/old_way_test.rb diff --git a/test/models/old_way_test.rb b/test/models/old_way_test.rb index d9b2a186a..37dfccad3 100644 --- a/test/models/old_way_test.rb +++ b/test/models/old_way_test.rb @@ -1,4 +1,4 @@ -require 'test_helper' +require "test_helper" class OldWayTest < ActiveSupport::TestCase api_fixtures @@ -92,13 +92,13 @@ class OldWayTest < ActiveSupport::TestCase way = ways(:way_with_versions_v3) nodes = OldWay.find(way.id).get_nodes_undelete assert_equal 2, nodes.size - assert_equal [1.0, 1.0, 15, 4, {"testing" => "added in node version 3", "testing two" => "modified in node version 4"}, true], nodes[0] - assert_equal [3.0, 3.0, 3, 1, {"test" => "yes"}, true], nodes[1] + assert_equal [1.0, 1.0, 15, 4, { "testing" => "added in node version 3", "testing two" => "modified in node version 4" }, true], nodes[0] + assert_equal [3.0, 3.0, 3, 1, { "test" => "yes" }, true], nodes[1] way = ways(:way_with_redacted_versions_v2) nodes = OldWay.find(way.id).get_nodes_undelete assert_equal 2, nodes.size - assert_equal [3.0, 3.0, 3, 1, {"test" => "yes"}, true], nodes[0] - assert_equal [2.0, 2.0, 2, 1, {"testused" => "yes"}, false], nodes[1] + assert_equal [3.0, 3.0, 3, 1, { "test" => "yes" }, true], nodes[0] + assert_equal [2.0, 2.0, 2, 1, { "testused" => "yes" }, false], nodes[1] end end