From 01001b167e28429926f27b876eb25078c03ebd35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9gis=20Hanol?= Date: Tue, 25 Oct 2016 01:55:47 +0200 Subject: [PATCH] fix the build --- spec/components/onebox/engine/discourse_local_onebox_spec.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/spec/components/onebox/engine/discourse_local_onebox_spec.rb b/spec/components/onebox/engine/discourse_local_onebox_spec.rb index 3646e97290a..9cb7e84c0dd 100644 --- a/spec/components/onebox/engine/discourse_local_onebox_spec.rb +++ b/spec/components/onebox/engine/discourse_local_onebox_spec.rb @@ -84,6 +84,7 @@ describe Onebox::Engine::DiscourseLocalOnebox do it "returns nil if file type is not audio or video" do url = "#{Discourse.base_url}/uploads/default/original/3X/5/c/24asdf42.pdf" + FakeWeb.register_uri(:get, url, body: "") expect(Onebox.preview(url).to_s).to eq("") end