From 264b92bd9fe2ae088f3bf505e370079787a15c46 Mon Sep 17 00:00:00 2001 From: Matt Amos Date: Thu, 30 Apr 2009 18:12:23 +0000 Subject: [PATCH] Fixed bad coding practice in test. --- test/unit/relation_tag_test.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/unit/relation_tag_test.rb b/test/unit/relation_tag_test.rb index 02800d360..e091efb0f 100644 --- 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! -- 2.39.5