Fixed indeterminacy in test.

This commit is contained in:
Matt Amos 2009-04-30 18:09:54 +00:00
parent 5fe85e39a4
commit 9cd381037a

View file

@ -77,7 +77,8 @@ class RelationTagTest < Test::Unit::TestCase
v = "probably unique string here 3142592654" v = "probably unique string here 3142592654"
assert_equal 0, RelationTag.count(:conditions => ['v=?', v]) 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.v = v
tag.save! tag.save!