From: Matt Amos Date: Thu, 30 Apr 2009 18:12:23 +0000 (+0000) Subject: Fixed bad coding practice in test. X-Git-Tag: live~8055 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/264b92bd9fe2ae088f3bf505e370079787a15c46 Fixed bad coding practice in test. --- 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!