FIX: Onebox will do a HEAD request first for redirects

This commit is contained in:
Robin Ward 2017-05-22 16:52:26 -04:00
parent b8d78b33c6
commit a8d1e44943

View File

@ -5,6 +5,7 @@ describe Oneboxer do
it "returns blank string for an invalid onebox" do
stub_request(:get, "http://boom.com").to_return(body: "")
stub_request(:head, "http://boom.com").to_return(body: "")
expect(Oneboxer.preview("http://boom.com")).to eq("")
expect(Oneboxer.onebox("http://boom.com")).to eq("")