lis = object.watcher_users.collect do |user|
s = ''.html_safe
s << avatar(user, :size => "16").to_s
- s << link_to_user(user, :class => 'user')
+ s << link_to_principal(user, class: user.class.to_s.downcase)
if object.respond_to?(:visible?) && user.is_a?(User) && !object.visible?(user)
s << content_tag('span', l(:notice_invalid_watcher), class: 'icon-only icon-warning', title: l(:notice_invalid_watcher))
end
end
assert_select "li.user-10" do
assert_select 'img.gravatar[title=?]', 'A Team'
- assert_select 'a[href="/users/10"]', false
+ assert_select 'a[href="/groups/10"]'
assert_select 'a[class*=delete]'
end
end