FIX: Onebox will do a HEAD request first for redirects
This commit is contained in:
parent
b8d78b33c6
commit
a8d1e44943
|
@ -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("")
|
||||
|
|
Loading…
Reference in New Issue