Fixes rubocop offenses introduced by r22991 (#23980).

git-svn-id: https://svn.redmine.org/redmine/trunk@22992 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Marius Balteanu
2024-08-30 15:59:59 +00:00
parent dc68230e05
commit b2a9928c3a

View File

@@ -37,7 +37,7 @@ class WatchersHelperTest < Redmine::HelperTest
test '#watcher_link with a single object array' do test '#watcher_link with a single object array' do
expected = link_to( expected = link_to(
icon_with_label("fav-off","Watch"), icon_with_label("fav-off", "Watch"),
"/watchers/watch?object_id=1&object_type=issue", "/watchers/watch?object_id=1&object_type=issue",
:remote => true, :method => 'post', :class => "issue-1-watcher icon icon-fav-off" :remote => true, :method => 'post', :class => "issue-1-watcher icon icon-fav-off"
) )
@@ -61,7 +61,7 @@ class WatchersHelperTest < Redmine::HelperTest
Watcher.create!(:watchable => Issue.find(1), :user => User.find(1)) Watcher.create!(:watchable => Issue.find(1), :user => User.find(1))
expected = link_to( expected = link_to(
icon_with_label("fav","Unwatch"), icon_with_label("fav", "Unwatch"),
"/watchers/watch?object_id=1&object_type=issue", "/watchers/watch?object_id=1&object_type=issue",
:remote => true, :method => 'delete', :class => "issue-1-watcher icon icon-fav" :remote => true, :method => 'delete', :class => "issue-1-watcher icon icon-fav"
) )