mirror of
https://github.com/discourse/discourse.git
synced 2025-05-28 22:57:40 +08:00
FIX: Use same code path for downloading images
This commit is contained in:
@ -7,6 +7,7 @@ describe FileHelper do
|
||||
let(:png) { Base64.decode64("R0lGODlhAQABALMAAAAAAIAAAACAAICAAAAAgIAAgACAgMDAwICAgP8AAAD/AP//AAAA//8A/wD//wBiZCH5BAEAAA8ALAAAAAABAAEAAAQC8EUAOw==") }
|
||||
|
||||
before do
|
||||
Excon.stub({ method: :head, hostname: 'eviltrout.com' }, {})
|
||||
stub_request(:get, url).to_return(body: png)
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user