]> source.dussan.org Git - redmine.git/commitdiff
Fixes a test failure.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Mon, 21 Dec 2009 21:19:01 +0000 (21:19 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Mon, 21 Dec 2009 21:19:01 +0000 (21:19 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3214 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/unit/issue_test.rb

index fa9d56dbd9b69e34242aece0023f559c3dd2100a..b22b05c78a5c2853ed2a91969b8c37878b85d82c 100644 (file)
@@ -216,7 +216,7 @@ class IssueTest < ActiveSupport::TestCase
     orig = Issue.find(1)
     assert_equal orig.subject, issue.subject
     assert_equal orig.tracker, issue.tracker
-    assert_equal orig.custom_values.first.value, issue.custom_values.first.value
+    assert_equal "125", issue.custom_value_for(2).value
   end
 
   def test_copy_should_copy_status