mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 18:30:26 -06:00
FIX: Missing HTTP stub
This commit is contained in:
parent
b81e7be9a1
commit
d2121ca272
@ -24,6 +24,7 @@ describe UserAvatarsController do
|
||||
SiteSetting.s3_upload_bucket = "test"
|
||||
SiteSetting.s3_cdn_url = "http://cdn.com"
|
||||
|
||||
Excon.stub({ method: :head, hostname: 'cdn.com' }, {})
|
||||
stub_request(:get, "http://cdn.com/something/else").to_return(body: 'image')
|
||||
|
||||
GlobalSetting.expects(:cdn_url).returns("http://awesome.com/boom")
|
||||
|
Loading…
Reference in New Issue
Block a user