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