]> git.openstreetmap.org Git - rails.git/blobdiff - test/models/relation_test.rb
Added new I18N string: notifier.friend_notification.hi
[rails.git] / test / models / relation_test.rb
index cb3330abe45b5721293ef2d60b038de4689ddd1d..b095024a64b8c23a771b7fa1a5132b2d0d905ef4 100644 (file)
@@ -132,7 +132,7 @@ class RelationTest < ActiveSupport::TestCase
     taglist = create_list(:relation_tag, 2, :relation => relation)
 
     tags = Relation.find(relation.id).relation_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
@@ -144,7 +144,7 @@ class RelationTest < ActiveSupport::TestCase
     taglist = create_list(:relation_tag, 2, :relation => relation)
 
     tags = Relation.find(relation.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