summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2017-07-16 18:04:00 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2017-07-16 18:04:00 +0000
commitbf149a63c092080a872cc713030bbeab75a1cb1d (patch)
tree95415682f84da22e5ab4f2219ea00fb550ba76fa /test
parentf9ff1c1a15f92d5630c27188066fb3c19b5fbc6b (diff)
downloadredmine-bf149a63c092080a872cc713030bbeab75a1cb1d.tar.gz
redmine-bf149a63c092080a872cc713030bbeab75a1cb1d.zip
Merged r16823 (#26445).
git-svn-id: http://svn.redmine.org/redmine/branches/3.4-stable@16824 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test')
-rw-r--r--test/unit/helpers/application_helper_test.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/unit/helpers/application_helper_test.rb b/test/unit/helpers/application_helper_test.rb
index 020b4636c..3bb018be1 100644
--- a/test/unit/helpers/application_helper_test.rb
+++ b/test/unit/helpers/application_helper_test.rb
@@ -1297,6 +1297,14 @@ RAW
end
end
+ def test_textilizable_with_formatting_set_to_false_should_not_format_text
+ assert_equal '*text*', textilizable("*text*", :formatting => false)
+ end
+
+ def test_textilizable_with_formatting_set_to_true_should_format_text
+ assert_equal '<p><strong>text</strong></p>', textilizable("*text*", :formatting => true)
+ end
+
def test_parse_redmine_links_should_handle_a_tag_without_attributes
text = '<a>http://example.com</a>'
expected = text.dup