Merged r11159 from trunk (#12799).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/branches/2.2-stable@11230 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2013-01-20 16:56:50 +00:00
parent f1314278d5
commit 5a1a2f5855
2 changed files with 15 additions and 1 deletions
@@ -419,6 +419,20 @@ STR
end
end
def test_get_section_should_support_headings_starting_with_a_tab
text = <<-STR
h1.\tHeading 1
Content 1
h1. Heading 2
Content 2
STR
assert_match /\Ah1.\tHeading 1\s+Content 1\z/, @formatter.new(text).get_section(1).first
end
private
def assert_html_output(to_test, expect_paragraph = true)