Support Ruby 2.4.

This commit is contained in:
Guo Xiang Tan
2017-04-15 12:11:02 +08:00
parent 86efc57390
commit 04016f0dec
29 changed files with 73 additions and 60 deletions

View File

@ -71,7 +71,7 @@ describe Onebox::Engine::DiscourseLocalOnebox do
it "returns nil if file type is not audio or video" do
url = "#{Discourse.base_url}#{path}.pdf"
FakeWeb.register_uri(:get, url, body: "")
stub_request(:get, url).to_return(body: '')
expect(Onebox.preview(url).to_s).to eq("")
end