From 1da5c72eda77c105a9aaf9ca5464ff6af8418f6d Mon Sep 17 00:00:00 2001 From: stve Date: Tue, 6 Oct 2015 23:45:18 -0400 Subject: [PATCH] update request specs to use 1.1 paths --- spec/instapaper/http/request_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/instapaper/http/request_spec.rb b/spec/instapaper/http/request_spec.rb index cf54938..2090b52 100644 --- a/spec/instapaper/http/request_spec.rb +++ b/spec/instapaper/http/request_spec.rb @@ -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