OSDN Git Service

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 fa9d56d..b22b05c 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