mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 16:11:08 +08:00
FIX: don't double request when downloading a file
This commit is contained in:
@ -47,7 +47,7 @@ describe UserAvatar do
|
||||
describe 'when avatar url returns an invalid status code' do
|
||||
it 'should not do anything' do
|
||||
url = "http://thisfakesomething.something.com/"
|
||||
stub_request(:head, url).to_return(status: 404)
|
||||
|
||||
UserAvatar.import_url_for_user(url, user)
|
||||
|
||||
user.reload
|
||||
|
Reference in New Issue
Block a user