Commit 53a6786b authored by jplang's avatar jplang

Fixed broken test.

git-svn-id: https://svn.redmine.org/redmine/trunk@10075 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 888c98b2
......@@ -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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment