@@ -1242,14 +1242,14 RAW | |||||
1242 | result = textilizable(raw, :edit_section_links => {:controller => 'wiki', :action => 'edit', :project_id => '1', :id => 'Test'}).gsub("\n", "") |
|
1242 | result = textilizable(raw, :edit_section_links => {:controller => 'wiki', :action => 'edit', :project_id => '1', :id => 'Test'}).gsub("\n", "") | |
1243 |
|
1243 | |||
1244 | # heading that contains inline code |
|
1244 | # heading that contains inline code | |
1245 | assert_match Regexp.new('<div class="contextual" title="Edit this section" id="section-4">' + |
|
1245 | assert_match Regexp.new('<div class="contextual heading-2" title="Edit this section" id="section-4">' + | |
1246 | '<a class="icon-only icon-edit" href="/projects/1/wiki/Test/edit\?section=4"></a></div>' + |
|
1246 | '<a class="icon-only icon-edit" href="/projects/1/wiki/Test/edit\?section=4"></a></div>' + | |
1247 | '<a name="Subtitle-with-inline-code"></a>' + |
|
1247 | '<a name="Subtitle-with-inline-code"></a>' + | |
1248 | '<h2 >Subtitle with <code>inline code</code><a href="#Subtitle-with-inline-code" class="wiki-anchor">¶</a></h2>'), |
|
1248 | '<h2 >Subtitle with <code>inline code</code><a href="#Subtitle-with-inline-code" class="wiki-anchor">¶</a></h2>'), | |
1249 | result |
|
1249 | result | |
1250 |
|
1250 | |||
1251 | # last heading |
|
1251 | # last heading | |
1252 | assert_match Regexp.new('<div class="contextual" title="Edit this section" id="section-5">' + |
|
1252 | assert_match Regexp.new('<div class="contextual heading-2" title="Edit this section" id="section-5">' + | |
1253 | '<a class="icon-only icon-edit" href="/projects/1/wiki/Test/edit\?section=5"></a></div>' + |
|
1253 | '<a class="icon-only icon-edit" href="/projects/1/wiki/Test/edit\?section=5"></a></div>' + | |
1254 | '<a name="Subtitle-after-pre-tag"></a>' + |
|
1254 | '<a name="Subtitle-after-pre-tag"></a>' + | |
1255 | '<h2 >Subtitle after pre tag<a href="#Subtitle-after-pre-tag" class="wiki-anchor">¶</a></h2>'), |
|
1255 | '<h2 >Subtitle after pre tag<a href="#Subtitle-after-pre-tag" class="wiki-anchor">¶</a></h2>'), |
General Comments 0
You need to be logged in to leave comments.
Login now