mirror of
https://github.com/discourse/discourse.git
synced 2025-05-28 13:51:18 +08:00
Support Ruby 2.4.
This commit is contained in:
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user