From: Matt Amos Date: Thu, 30 Apr 2009 18:09:54 +0000 (+0000) Subject: Fixed indeterminacy in test. X-Git-Tag: live~7475 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/9cd381037a8daaba9c4f0925d395af9253dce432?ds=sidebyside Fixed indeterminacy in test. --- diff --git a/test/unit/relation_tag_test.rb b/test/unit/relation_tag_test.rb index 54ee57e1e..02800d360 100644 --- a/test/unit/relation_tag_test.rb +++ b/test/unit/relation_tag_test.rb @@ -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!