diff options
author | Go MAEDA <maeda@farend.jp> | 2018-02-18 05:05:50 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2018-02-18 05:05:50 +0000 |
commit | 8117d481ac6582ac1cb51f895b18aa69fa040dda (patch) | |
tree | 8809e0be0aad80976e66df014edd59aa94715888 | |
parent | a500e8fafcca56a8f5f846db07cd2771867e7fc7 (diff) | |
download | redmine-8117d481ac6582ac1cb51f895b18aa69fa040dda.tar.gz redmine-8117d481ac6582ac1cb51f895b18aa69fa040dda.zip |
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
-rw-r--r-- | test/helpers/application_helper_test.rb | 1 |
1 files changed, 1 insertions, 0 deletions
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 |