Fixed bad coding practice in test.
This commit is contained in:
parent
9cd381037a
commit
264b92bd9f
1 changed files with 2 additions and 1 deletions
|
@ -78,7 +78,8 @@ class RelationTagTest < Test::Unit::TestCase
|
||||||
assert_equal 0, RelationTag.count(:conditions => ['v=?', v])
|
assert_equal 0, RelationTag.count(:conditions => ['v=?', v])
|
||||||
|
|
||||||
# make sure we select a tag on a relation which has more than one tag
|
# make sure we select a tag on a relation which has more than one tag
|
||||||
tag = RelationTag.find(:first, :conditions => ["id = ?", 4])
|
id = current_relations(:multi_tag_relation).id
|
||||||
|
tag = RelationTag.find(:first, :conditions => ["id = ?", id])
|
||||||
tag.v = v
|
tag.v = v
|
||||||
tag.save!
|
tag.save!
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue