From 8117d481ac6582ac1cb51f895b18aa69fa040dda Mon Sep 17 00:00:00 2001 From: Go MAEDA Date: Sun, 18 Feb 2018 05:05:50 +0000 Subject: [PATCH] Test that "img" tag for an avatar of AnonymousUser has "width" and "height" attributes (#28204). Patch by Go MAEDA. git-svn-id: http://svn.redmine.org/redmine/trunk@17201 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/helpers/application_helper_test.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/test/helpers/application_helper_test.rb b/test/helpers/application_helper_test.rb index 936a0ba84..17d4a14c2 100644 --- a/test/helpers/application_helper_test.rb +++ b/test/helpers/application_helper_test.rb @@ -1318,6 +1318,7 @@ RAW assert_match tag_for_anonymous_re, avatar(nil) # Avatar for anonymous user assert_match tag_for_anonymous_re, avatar(User.anonymous) + assert avatar(User.anonymous, :size => 24).include?('width="24" height="24"') end end -- 2.39.5