fix the build

This commit is contained in:
Régis Hanol 2016-10-25 01:55:47 +02:00
parent 08d53b32ca
commit 01001b167e
1 changed files with 1 additions and 0 deletions

View File

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