We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1649602 commit 8aff98cCopy full SHA for 8aff98c
spec/readwise/client_spec.rb
@@ -312,7 +312,7 @@
312
end
313
314
it 'raises error on failed POST request' do
315
- allow(Net::HTTP).to receive(:start).and_return(double(code: '500', is_a?: false, body: ""))
+ allow(Net::HTTP).to receive(:start).and_return(double(is_a?: false))
316
317
expect { subject.send(:post_readwise_request, 'https://example.com', payload: {}) }
318
.to raise_error(Readwise::Client::Error, 'Post request failed')
0 commit comments