mirror of
https://github.com/redmine/redmine.git
synced 2026-08-31 05:07:27 +02:00
Fixes more tests.
git-svn-id: https://svn.redmine.org/redmine/trunk@22991 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -1716,7 +1716,8 @@ class ApplicationHelperTest < Redmine::HelperTest
|
||||
Regexp.new(
|
||||
'<div class="contextual heading-2" title="Edit this section" id="section-4">' \
|
||||
'<a class="icon-only icon-edit" href="/projects/1/wiki/Test/edit\?section=4">' \
|
||||
'Edit this section' \
|
||||
'<svg class="s14" aria-hidden="true"><use href="\/assets\/icons-.*.svg#icon--edit"></use></svg>' \
|
||||
'<span class="icon-label">Edit this section</span>' \
|
||||
'</a></div>' \
|
||||
'<a name="Subtitle-with-inline-code"></a>' \
|
||||
'<h2 >Subtitle with ' \
|
||||
@@ -1730,7 +1731,8 @@ class ApplicationHelperTest < Redmine::HelperTest
|
||||
Regexp.new(
|
||||
'<div class="contextual heading-2" title="Edit this section" id="section-5">' \
|
||||
'<a class="icon-only icon-edit" href="/projects/1/wiki/Test/edit\?section=5">' \
|
||||
'Edit this section' \
|
||||
'<svg class="s14" aria-hidden="true"><use href="\/assets\/icons-.*.svg#icon--edit"></use></svg>' \
|
||||
'<span class="icon-label">Edit this section</span>' \
|
||||
'</a></div>' \
|
||||
'<a name="Subtitle-after-pre-tag"></a>' \
|
||||
'<h2 >Subtitle after pre tag' \
|
||||
|
||||
@@ -28,7 +28,7 @@ class WatchersHelperTest < Redmine::HelperTest
|
||||
|
||||
test '#watcher_link with a non-watched object' do
|
||||
expected = link_to(
|
||||
"Watch",
|
||||
icon_with_label("fav-off", "Watch"),
|
||||
"/watchers/watch?object_id=1&object_type=issue",
|
||||
:remote => true, :method => 'post', :class => "issue-1-watcher icon icon-fav-off"
|
||||
)
|
||||
@@ -37,7 +37,7 @@ class WatchersHelperTest < Redmine::HelperTest
|
||||
|
||||
test '#watcher_link with a single object array' do
|
||||
expected = link_to(
|
||||
"Watch",
|
||||
icon_with_label("fav-off","Watch"),
|
||||
"/watchers/watch?object_id=1&object_type=issue",
|
||||
:remote => true, :method => 'post', :class => "issue-1-watcher icon icon-fav-off"
|
||||
)
|
||||
@@ -46,7 +46,7 @@ class WatchersHelperTest < Redmine::HelperTest
|
||||
|
||||
test '#watcher_link with a multiple objects array' do
|
||||
expected = link_to(
|
||||
"Watch",
|
||||
icon_with_label("fav-off", "Watch"),
|
||||
"/watchers/watch?object_id%5B%5D=1&object_id%5B%5D=3&object_type=issue",
|
||||
:remote => true, :method => 'post', :class => "issue-bulk-watcher icon icon-fav-off"
|
||||
)
|
||||
@@ -61,7 +61,7 @@ class WatchersHelperTest < Redmine::HelperTest
|
||||
Watcher.create!(:watchable => Issue.find(1), :user => User.find(1))
|
||||
|
||||
expected = link_to(
|
||||
"Unwatch",
|
||||
icon_with_label("fav","Unwatch"),
|
||||
"/watchers/watch?object_id=1&object_type=issue",
|
||||
:remote => true, :method => 'delete', :class => "issue-1-watcher icon icon-fav"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user