diff options
author | Go MAEDA <maeda@farend.jp> | 2019-02-12 11:50:54 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2019-02-12 11:50:54 +0000 |
commit | b6592a73e89958858e6378649b3aafa6cf4583f2 (patch) | |
tree | 59870f6f4b98a3802c0cd2a08dbb053cae04fc3b /test/unit/custom_field_test.rb | |
parent | cbc34f2c5b3cc0e40144886cc37d5c6c1ec9839e (diff) | |
download | redmine-b6592a73e89958858e6378649b3aafa6cf4583f2.tar.gz redmine-b6592a73e89958858e6378649b3aafa6cf4583f2.zip |
Show Edit/Preview tabs for full width layout custom fields with text formatting enabled (#29712).
Patch by Marius BALTEANU.
git-svn-id: http://svn.redmine.org/redmine/trunk@17858 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/custom_field_test.rb')
-rw-r--r-- | test/unit/custom_field_test.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/unit/custom_field_test.rb b/test/unit/custom_field_test.rb index 89b53caeb..e4c9c0b94 100644 --- a/test/unit/custom_field_test.rb +++ b/test/unit/custom_field_test.rb @@ -362,4 +362,12 @@ class CustomFieldTest < ActiveSupport::TestCase refute_includes Project.where(project_field.visibility_by_project_condition), project end end + + def test_full_text_formatting? + field = IssueCustomField.create!(:name => 'Long text', :field_format => 'text', :text_formatting => 'full') + assert field.full_text_formatting? + + field2 = IssueCustomField.create!(:name => 'Another long text', :field_format => 'text') + assert !field2.full_text_formatting? + end end |