summaryrefslogtreecommitdiffstats
path: root/test/unit
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2016-07-10 07:46:52 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2016-07-10 07:46:52 +0000
commit0b67170baf6880d72ab2bf48bcbf00b99759951e (patch)
treec114f4ea506651003029ab6541bfeb8680972483 /test/unit
parent723857fc4281b273da584b94154e1942b6bc8eb3 (diff)
downloadredmine-0b67170baf6880d72ab2bf48bcbf00b99759951e.tar.gz
redmine-0b67170baf6880d72ab2bf48bcbf00b99759951e.zip
Merged r15607 (#23246).
git-svn-id: http://svn.redmine.org/redmine/branches/3.3-stable@15614 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit')
-rw-r--r--test/unit/lib/redmine/wiki_formatting/markdown_formatter_test.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/unit/lib/redmine/wiki_formatting/markdown_formatter_test.rb b/test/unit/lib/redmine/wiki_formatting/markdown_formatter_test.rb
index 6222c21cc..b8aa37ff2 100644
--- a/test/unit/lib/redmine/wiki_formatting/markdown_formatter_test.rb
+++ b/test/unit/lib/redmine/wiki_formatting/markdown_formatter_test.rb
@@ -28,6 +28,10 @@ class Redmine::WikiFormatting::MarkdownFormatterTest < ActionView::TestCase
assert @formatter.new("!>[](foo.png)").to_html
end
+ def test_empty_image_should_not_raise_exception
+ assert @formatter.new("![]()").to_html
+ end
+
# re-using the formatter after getting above error crashes the
# ruby interpreter. This seems to be related to
# https://github.com/vmg/redcarpet/issues/318