X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/acb7f440690b1f773f71ded256f3986a5606b334..aa185bf4f88e12bad895abaabc9948514e9f1ec5:/test/models/old_node_test.rb diff --git a/test/models/old_node_test.rb b/test/models/old_node_test.rb index 6d25d7667..a4c317c02 100644 --- a/test/models/old_node_test.rb +++ b/test/models/old_node_test.rb @@ -90,7 +90,7 @@ class OldNodeTest < ActiveSupport::TestCase node = nodes(:node_with_versions_v3) tags = OldNode.find(node.id).old_tags.order(:k) assert_equal 3, tags.count - taglist_v3.sort_by(&:k).each_index do |i| + taglist_v3.sort_by!(&:k).each_index do |i| assert_equal taglist_v3[i].k, tags[i].k assert_equal taglist_v3[i].v, tags[i].v end @@ -98,7 +98,7 @@ class OldNodeTest < ActiveSupport::TestCase node = nodes(:node_with_versions_v4) tags = OldNode.find(node.id).old_tags.order(:k) assert_equal 2, tags.count - taglist_v4.sort_by(&:k).each_index do |i| + taglist_v4.sort_by!(&:k).each_index do |i| assert_equal taglist_v4[i].k, tags[i].k assert_equal taglist_v4[i].v, tags[i].v end