mirror of
https://github.com/samsonjs/instapaper.git
synced 2026-03-25 08:55:49 +00:00
update request specs to use 1.1 paths
This commit is contained in:
parent
0271919e18
commit
1da5c72eda
1 changed files with 2 additions and 2 deletions
|
|
@ -6,7 +6,7 @@ describe Instapaper::HTTP::Request do
|
|||
describe 'error handling' do
|
||||
context 'when receiving a non-200 response' do
|
||||
before do
|
||||
stub_post('/api/1/folders/list')
|
||||
stub_post('/api/1.1/folders/list')
|
||||
.to_return(status: 503, body: '', headers: {content_type: 'application/json; charset=utf-8'})
|
||||
end
|
||||
it 'raises a ServiceUnavailableError' do
|
||||
|
|
@ -16,7 +16,7 @@ describe Instapaper::HTTP::Request do
|
|||
|
||||
context 'when failing to parse json' do
|
||||
before do
|
||||
stub_post('/api/1/folders/list')
|
||||
stub_post('/api/1.1/folders/list')
|
||||
.to_return(status: 200, body: '{"key":"value}', headers: {content_type: 'application/json; charset=utf-8'})
|
||||
end
|
||||
it 'raises a ServiceUnavailableError' do
|
||||
|
|
|
|||
Loading…
Reference in a new issue