mirror of
https://github.com/discourse/discourse.git
synced 2025-09-07 12:02:53 +08:00
Remove legacy avatar code
- Remove method that was only left around because the [api](https://github.com/discourse/discourse_api/pull/53) called it - Modify test to use new route instead of legacy route https://meta.discourse.org/t/legacy-route-for-avatars/22838/2
This commit is contained in:
parent
929ff00741
commit
e9e88c9b82
3 changed files with 1 additions and 32 deletions
|
@ -1218,7 +1218,7 @@ describe UsersController do
|
|||
upload = Fabricate(:upload)
|
||||
Upload.expects(:create_for).returns(upload)
|
||||
# enqueues the user_image generator job
|
||||
xhr :post, :upload_avatar, username: user.username, file: user_image_url, image_type: "avatar"
|
||||
xhr :post, :upload_user_image, username: user.username, file: user_image_url, image_type: "avatar"
|
||||
json = JSON.parse(response.body)
|
||||
json['url'].should == "/uploads/default/1/1234567890123456.png"
|
||||
json['width'].should == 100
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue