Fixed indeterminacy in test.
This commit is contained in:
parent
5fe85e39a4
commit
9cd381037a
1 changed files with 2 additions and 1 deletions
|
@ -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!
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue