Defect #40716 » test-40716.patch
test/unit/lib/redmine/wiki_formatting/common_mark/formatter_test.rb | ||
---|---|---|
207 | 207 |
assert_section_with_hash STR_WITH_PRE[2], text, 3 |
208 | 208 |
end |
209 | 209 | |
210 |
def test_get_section_should_not_recognize_double_hash_issue_reference_as_heading |
|
211 |
text = <<~STR |
|
212 |
## Section A |
|
213 | ||
214 |
This text is a part of Section A. |
|
215 | ||
216 |
##1 : This is an issue reference, not an ATX heading. |
|
217 | ||
218 |
This text is also a part of Section A. |
|
219 |
<!-- Section A ends here --> |
|
220 |
STR |
|
221 | ||
222 |
assert_section_with_hash text.chomp, text, 1 |
|
223 |
end |
|
224 | ||
210 | 225 |
def test_update_section_should_not_escape_pre_content_outside_section |
211 | 226 |
text = STR_WITH_PRE.join("\n\n") |
212 | 227 |
replacement = "New text" |
- « Previous
- 1
- …
- 3
- 4
- 5
- Next »