From 237a3f52a2d9d269b56f5cdb022f0ff4f8197100 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Mon, 11 Aug 2008 18:24:39 +0000 Subject: Fixes custom fields display order at several places (#1768). git-svn-id: http://redmine.rubyforge.org/svn/trunk@1731 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/functional/issues_controller_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test') diff --git a/test/functional/issues_controller_test.rb b/test/functional/issues_controller_test.rb index 22f9a3baf..005542f81 100644 --- a/test/functional/issues_controller_test.rb +++ b/test/functional/issues_controller_test.rb @@ -212,7 +212,7 @@ class IssuesControllerTest < Test::Unit::TestCase assert_equal 2, issue.author_id assert_equal 3, issue.tracker_id assert_nil issue.estimated_hours - v = issue.custom_values.find_by_custom_field_id(2) + v = issue.custom_values.find(:first, :conditions => {:custom_field_id => 2}) assert_not_nil v assert_equal 'Value for field 2', v.value end -- cgit v1.2.3