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
+ id = current_relations(:multi_tag_relation).id
+ tag = RelationTag.find(:first, :conditions => ["id = ?", id])
tag.v = v
tag.save!