]> source.dussan.org Git - redmine.git/commitdiff
Fixed broken test.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Tue, 24 Jul 2012 18:39:14 +0000 (18:39 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Tue, 24 Jul 2012 18:39:14 +0000 (18:39 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10075 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/unit/custom_field_test.rb

index 3d98c95a51deecf643415f0bf75cccb0e066f1e8..547e712db4c4215e3f094858d99dc53bafec47dd 100644 (file)
@@ -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