mirror of
https://github.com/samsonjs/instapaper.git
synced 2026-04-27 14:57:44 +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
|
describe 'error handling' do
|
||||||
context 'when receiving a non-200 response' do
|
context 'when receiving a non-200 response' do
|
||||||
before 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'})
|
.to_return(status: 503, body: '', headers: {content_type: 'application/json; charset=utf-8'})
|
||||||
end
|
end
|
||||||
it 'raises a ServiceUnavailableError' do
|
it 'raises a ServiceUnavailableError' do
|
||||||
|
|
@ -16,7 +16,7 @@ describe Instapaper::HTTP::Request do
|
||||||
|
|
||||||
context 'when failing to parse json' do
|
context 'when failing to parse json' do
|
||||||
before 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'})
|
.to_return(status: 200, body: '{"key":"value}', headers: {content_type: 'application/json; charset=utf-8'})
|
||||||
end
|
end
|
||||||
it 'raises a ServiceUnavailableError' do
|
it 'raises a ServiceUnavailableError' do
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue