diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-10-13 07:40:07 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-10-13 07:40:07 +0000 |
commit | 8a6ce3a6463f55978bc108385fe8908d19891fcd (patch) | |
tree | a7f527be71792aba5931033cc04a5755d3af048e /test/unit/custom_field_test.rb | |
parent | e04bd297e04eef026912e9386b92151dd9be7adf (diff) | |
download | redmine-8a6ce3a6463f55978bc108385fe8908d19891fcd.tar.gz redmine-8a6ce3a6463f55978bc108385fe8908d19891fcd.zip |
Make sure that custom field format cannot be changed.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10624 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/custom_field_test.rb')
-rw-r--r-- | test/unit/custom_field_test.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/unit/custom_field_test.rb b/test/unit/custom_field_test.rb index 547e712db..d858045ed 100644 --- a/test/unit/custom_field_test.rb +++ b/test/unit/custom_field_test.rb @@ -57,6 +57,12 @@ class CustomFieldTest < ActiveSupport::TestCase assert field.valid? end + def test_should_not_change_field_format_of_existing_custom_field + field = CustomField.find(1) + field.field_format = 'int' + assert_equal 'list', field.field_format + end + def test_possible_values_should_accept_an_array field = CustomField.new field.possible_values = ["One value", ""] |