projects
/
rails.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9cd3810
)
Fixed bad coding practice in test.
author
Matt Amos
<zerebubuth@gmail.com>
Thu, 30 Apr 2009 18:12:23 +0000
(18:12 +0000)
committer
Matt Amos
<zerebubuth@gmail.com>
Thu, 30 Apr 2009 18:12:23 +0000
(18:12 +0000)
test/unit/relation_tag_test.rb
patch
|
blob
|
history
diff --git
a/test/unit/relation_tag_test.rb
b/test/unit/relation_tag_test.rb
index 02800d360231ef1ec48071a5ce662598f0a94926..e091efb0f27e36ba5857beceb1d1bbcc33fd6e18 100644
(file)
--- a/
test/unit/relation_tag_test.rb
+++ b/
test/unit/relation_tag_test.rb
@@
-78,7
+78,8
@@
class RelationTagTest < Test::Unit::TestCase
assert_equal 0, RelationTag.count(:conditions => ['v=?', v])
# 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.save!