Return the "large" image from the user details API call

Closes #1923
This commit is contained in:
Tom Hughes 2018-07-09 20:26:37 +01:00
parent d66b4b3d2f
commit f70edc02f0
3 changed files with 3 additions and 3 deletions

View file

@ -59,7 +59,7 @@ class UserHelperTest < ActionView::TestCase
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