FIX: Use same code path for downloading images

This commit is contained in:
Robin Ward
2017-05-23 13:31:20 -04:00
parent e5e7a15a85
commit 36e477750c
6 changed files with 29 additions and 15 deletions

View File

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