Skip to content

Commit 34bbfca

Browse files
committed
Stub HTTP.timeout in image API spec
1 parent 3a830c7 commit 34bbfca

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎spec/serpapi/client/image_api_spec.rb‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
let(:client) { SerpApi::Client.new(api_key: api_key) }
1414

1515
before do
16-
allow(HTTP).to receive(:persistent).and_return(socket)
16+
allow(HTTP).to receive(:timeout).and_return(double(persistent: socket))
1717
allow(response).to receive(:flush)
1818
end
1919

0 commit comments

Comments
 (0)