]> git.openstreetmap.org Git - rails.git/blobdiff - test/models/way_test.rb
Merge remote-tracking branch 'openstreetmap/pull/1538'
[rails.git] / test / models / way_test.rb
index 654076eecb0ebcd09c0792eb399b8a04e1d22c53..807b71d5bf63d200b151ec7f80e0a6a9eda37751 100644 (file)
@@ -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