Patch by Go MAEDA.
git-svn-id: http://svn.redmine.org/redmine/branches/3.4-stable@17202
e93f8b46-1217-0410-a6f0-
8f06a7374b81
if email.present?
gravatar(email.to_s.downcase, options) rescue nil
else
+ options[:size] &&= options[:size].to_s
image_tag 'anonymous.png',
GravatarHelper::DEFAULT_OPTIONS
.except(:default, :rating, :ssl).merge(options)
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