diff --git a/spec/components/oneboxer_spec.rb b/spec/components/oneboxer_spec.rb index a01449f21ee..6579e1f6e2e 100644 --- a/spec/components/oneboxer_spec.rb +++ b/spec/components/oneboxer_spec.rb @@ -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("")