summaryrefslogtreecommitdiffstats
path: root/test/helpers
diff options
context:
space:
mode:
authorMarius Balteanu <marius.balteanu@zitec.com>2024-10-19 10:06:26 +0000
committerMarius Balteanu <marius.balteanu@zitec.com>2024-10-19 10:06:26 +0000
commitd1008280d8bead4757646d53f18d0b76fa20b429 (patch)
tree6424d06cc95da85711dc27460e39a976760527fd /test/helpers
parentffb78c12c35192aff8e13389577ef9564ab278ee (diff)
downloadredmine-d1008280d8bead4757646d53f18d0b76fa20b429.tar.gz
redmine-d1008280d8bead4757646d53f18d0b76fa20b429.zip
Renames and improves methods provided by @IconsHelper@ (#23980).
git-svn-id: https://svn.redmine.org/redmine/trunk@23145 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/helpers')
-rw-r--r--test/helpers/application_helper_test.rb2
-rw-r--r--test/helpers/watchers_helper_test.rb8
2 files changed, 5 insertions, 5 deletions
diff --git a/test/helpers/application_helper_test.rb b/test/helpers/application_helper_test.rb
index eb3db11e0..6bf8911af 100644
--- a/test/helpers/application_helper_test.rb
+++ b/test/helpers/application_helper_test.rb
@@ -2027,7 +2027,7 @@ class ApplicationHelperTest < Redmine::HelperTest
tags = principals_check_box_tags(name, principals)
principals.each_with_index do |principal, i|
assert_not_include avatar_tags[i], tags
- assert_include content_tag('span', icon_for_principal(principal.class.name.downcase), :class => "name icon icon-#{principal.class.name.downcase}"), tags
+ assert_include content_tag('span', principal_icon(principal.class.name.downcase), :class => "name icon icon-#{principal.class.name.downcase}"), tags
end
end
end
diff --git a/test/helpers/watchers_helper_test.rb b/test/helpers/watchers_helper_test.rb
index 7d1f39795..1d29d33d5 100644
--- a/test/helpers/watchers_helper_test.rb
+++ b/test/helpers/watchers_helper_test.rb
@@ -28,7 +28,7 @@ class WatchersHelperTest < Redmine::HelperTest
test '#watcher_link with a non-watched object' do
expected = link_to(
- icon_with_label("fav", "Watch"),
+ sprite_icon("fav", "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(
- icon_with_label("fav", "Watch"),
+ sprite_icon("fav", "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(
- icon_with_label("fav", "Watch"),
+ sprite_icon("fav", "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(
- icon_with_label("fav", "Unwatch"),
+ sprite_icon("fav", "Unwatch"),
"/watchers/watch?object_id=1&object_type=issue",
:remote => true, :method => 'delete', :class => "issue-1-watcher icon icon-fav"
)