@@ -1423,7 +1423,7 @@ def test_table_of_content
1423
1423
'</ul>'
1424
1424
1425
1425
@project = Project . find ( 1 )
1426
- assert textilizable ( raw ) . gsub ( "\n " , " ") . include? ( expected )
1426
+ assert textilizable ( raw ) . delete ( "\n " ) . include? ( expected )
1427
1427
end
1428
1428
1429
1429
def test_table_of_content_should_generate_unique_anchors
@@ -1447,7 +1447,7 @@ def test_table_of_content_should_generate_unique_anchors
1447
1447
'</li>' +
1448
1448
'</ul>'
1449
1449
@project = Project . find ( 1 )
1450
- result = textilizable ( raw ) . gsub ( "\n " , " ")
1450
+ result = textilizable ( raw ) . delete ( "\n " )
1451
1451
assert_include expected , result
1452
1452
assert_include '<a name="Subtitle">' , result
1453
1453
assert_include '<a name="Subtitle-2">' , result
@@ -1468,7 +1468,7 @@ def test_table_of_content_should_contain_included_page_headings
1468
1468
'<li><a href="#Child-page-1">Child page 1</a></li>' +
1469
1469
'</ul>'
1470
1470
@project = Project . find ( 1 )
1471
- assert textilizable ( raw ) . gsub ( "\n " , " ") . include? ( expected )
1471
+ assert textilizable ( raw ) . delete ( "\n " ) . include? ( expected )
1472
1472
end
1473
1473
1474
1474
def test_toc_with_textile_formatting_should_be_parsed
@@ -1519,7 +1519,7 @@ def test_section_edit_links
1519
1519
:edit_section_links =>
1520
1520
{ :controller => 'wiki' , :action => 'edit' ,
1521
1521
:project_id => '1' , :id => 'Test' }
1522
- ) . gsub ( "\n " , " ")
1522
+ ) . delete ( "\n " )
1523
1523
# heading that contains inline code
1524
1524
assert_match (
1525
1525
Regexp . new ( '<div class="contextual heading-2" title="Edit this section" id="section-4">' +
0 commit comments