if user.image_use_gravatar
user_gravatar_url(user, options)
else
- image_url(user.image.url)
+ image_url(user.image.url(:large))
end
end
else
xml.tag! "contributor-terms", :agreed => @user.terms_agreed.present?
end
- xml.tag! "img", :href => user_image_url(@user, :size => 256) if @user.image.file? || @user.image_use_gravatar
+ xml.tag! "img", :href => user_image_url(@user) if @user.image.file? || @user.image_use_gravatar
xml.tag! "roles" do
@user.roles.each do |role|
xml.tag! role.role
gravatar_user = create(:user, :image_use_gravatar => true)
url = user_image_url(user)
- assert_match %r{^/attachments/users/images/\d{3}/\d{3}/\d{3}/original/d41d8cd98f00b204e9800998ecf8427e.jpg$}, url
+ assert_match %r{^/attachments/users/images/\d{3}/\d{3}/\d{3}/large/d41d8cd98f00b204e9800998ecf8427e.jpg$}, url
url = user_image_url(gravatar_user)
assert_match %r{^http://www.gravatar.com/avatar/}, url