summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2013-10-26 11:50:16 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2013-10-26 11:50:16 +0000
commit918ec276f1a841bf1752b127b58461a81ca063f1 (patch)
treebe5eec87e2923586f58e4a87e795ca7545f8f6b7
parentba083225b7403b826c634ca3d0ce777c8445daf0 (diff)
downloadredmine-918ec276f1a841bf1752b127b58461a81ca063f1.tar.gz
redmine-918ec276f1a841bf1752b127b58461a81ca063f1.zip
Fixed test failure (#15182).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@12240 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r--test/unit/helpers/application_helper_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/unit/helpers/application_helper_test.rb b/test/unit/helpers/application_helper_test.rb
index ebdc5d216..0d2cc4446 100644
--- a/test/unit/helpers/application_helper_test.rb
+++ b/test/unit/helpers/application_helper_test.rb
@@ -1016,14 +1016,14 @@ RAW
result = textilizable(raw, :edit_section_links => {:controller => 'wiki', :action => 'edit', :project_id => '1', :id => 'Test'}).gsub("\n", "")
# heading that contains inline code
- assert_match Regexp.new('<div class="contextual" title="Edit this section">' +
+ assert_match Regexp.new('<div class="contextual" id="section-4" title="Edit this section">' +
'<a href="/projects/1/wiki/Test/edit\?section=4"><img alt="Edit" src="/images/edit.png(\?\d+)?" /></a></div>' +
'<a name="Subtitle-with-inline-code"></a>' +
'<h2 >Subtitle with <code>inline code</code><a href="#Subtitle-with-inline-code" class="wiki-anchor">&para;</a></h2>'),
result
# last heading
- assert_match Regexp.new('<div class="contextual" title="Edit this section">' +
+ assert_match Regexp.new('<div class="contextual" id="section-5" title="Edit this section">' +
'<a href="/projects/1/wiki/Test/edit\?section=5"><img alt="Edit" src="/images/edit.png(\?\d+)?" /></a></div>' +
'<a name="Subtitle-after-pre-tag"></a>' +
'<h2 >Subtitle after pre tag<a href="#Subtitle-after-pre-tag" class="wiki-anchor">&para;</a></h2>'),