FIX: Missing HTTP stub

This commit is contained in:
Robin Ward 2017-05-23 15:08:19 -04:00
parent b81e7be9a1
commit d2121ca272

View File

@ -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")