X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/970e1a99d7dce64f0631e88c5b9f060fb48d75fe..a3618d2b5fcb991fef7786fbbbfd6d3e0ac88d28:/test/models/way_test.rb?ds=sidebyside diff --git a/test/models/way_test.rb b/test/models/way_test.rb index 654076eec..807b71d5b 100644 --- a/test/models/way_test.rb +++ b/test/models/way_test.rb @@ -167,7 +167,7 @@ class WayTest < ActiveSupport::TestCase way = current_ways(:way_with_versions) taglist = create_list(:way_tag, 2, :way => way) tags = Way.find(way.id).way_tags.order(:k) - assert_equal 2, tags.count + assert_equal taglist.count, tags.count taglist.sort_by!(&:k).each_index do |i| assert_equal taglist[i].k, tags[i].k assert_equal taglist[i].v, tags[i].v @@ -178,7 +178,7 @@ class WayTest < ActiveSupport::TestCase way = current_ways(:way_with_versions) taglist = create_list(:way_tag, 2, :way => way) tags = Way.find(way.id).tags - assert_equal 2, tags.size + assert_equal taglist.count, tags.count taglist.each do |tag| assert_equal tag.v, tags[tag.k] end