]> git.openstreetmap.org Git - rails.git/blobdiff - test/unit/relation_tag_test.rb
Fixed indeterminacy in test.
[rails.git] / test / unit / relation_tag_test.rb
index 54ee57e1e235a8392cb8b3d1f190c5ab7cc5cd5f..02800d360231ef1ec48071a5ce662598f0a94926 100644 (file)
@@ -77,7 +77,8 @@ class RelationTagTest < Test::Unit::TestCase
     v = "probably unique string here 3142592654"
     assert_equal 0, RelationTag.count(:conditions => ['v=?', v])
 
-    tag = RelationTag.find(:first)
+    # make sure we select a tag on a relation which has more than one tag
+    tag = RelationTag.find(:first, :conditions => ["id = ?", 4])
     tag.v = v
     tag.save!