From 8fa787719ab4cf2905afe52f7b41bcfed518e176 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Tue, 24 Jul 2012 18:39:14 +0000 Subject: [PATCH] Fixed broken test. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10075 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/unit/custom_field_test.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/unit/custom_field_test.rb b/test/unit/custom_field_test.rb index 3d98c95a5..547e712db 100644 --- a/test/unit/custom_field_test.rb +++ b/test/unit/custom_field_test.rb @@ -204,12 +204,12 @@ class CustomFieldTest < ActiveSupport::TestCase end def test_value_class_should_return_the_class_used_for_fields_values - assert_equal User, CustomField.new(:field_format => 'user') - assert_equal Version, CustomField.new(:field_format => 'version') + assert_equal User, CustomField.new(:field_format => 'user').value_class + assert_equal Version, CustomField.new(:field_format => 'version').value_class end def test_value_class_should_return_nil_for_other_fields - assert_nil CustomField.new(:field_format => 'text') - assert_nil CustomField.new + assert_nil CustomField.new(:field_format => 'text').value_class + assert_nil CustomField.new.value_class end end -- 2.39.5