From 0271919e181a21270f4e136b1c9b6c18b17aeebc Mon Sep 17 00:00:00 2001 From: stve Date: Tue, 6 Oct 2015 23:44:09 -0400 Subject: [PATCH] update error specs to use 1.1 paths --- spec/instapaper/error_spec.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/spec/instapaper/error_spec.rb b/spec/instapaper/error_spec.rb index 75a39f3..d383119 100644 --- a/spec/instapaper/error_spec.rb +++ b/spec/instapaper/error_spec.rb @@ -23,7 +23,7 @@ describe Instapaper::Error do context "when HTTP status is #{status}" do let(:response_body) { %([{"type":"error", "error_code":#{status}, "message":"Error Message"}]) } before do - stub_post('/api/1/oauth/access_token') + stub_post('/api/1.1/oauth/access_token') .to_return(status: 200, body: response_body, headers: {content_type: 'application/json; charset=utf-8'}) end it "raises #{exception}" do @@ -36,7 +36,7 @@ describe Instapaper::Error do context "when HTTP status is #{status}" do let(:response_body) { %([{"type":"error", "error_code":#{status}, "message":"Error Message"}]) } before do - stub_post('/api/1/bookmarks/list') + stub_post('/api/1.1/bookmarks/list') .to_return(status: 200, body: response_body, headers: {content_type: 'application/json; charset=utf-8'}) end it "raises #{exception}" do @@ -49,7 +49,7 @@ describe Instapaper::Error do context "when HTTP status is #{status}" do let(:response_body) { %([{"type":"error", "error_code":#{status}, "message":"Error Message"}]) } before do - stub_post('/api/1/folders/list') + stub_post('/api/1.1/folders/list') .to_return(status: 200, body: response_body, headers: {content_type: 'application/json; charset=utf-8'}) end it "raises #{exception}" do @@ -62,7 +62,7 @@ describe Instapaper::Error do context "when HTTP status is #{status}" do let(:response_body) { %([{"type":"error", "error_code":#{status}, "message":"Error Message"}]) } before do - stub_post('/api/1.1/bookmarks/123/highlights') + stub_get('/api/1.1/bookmarks/123/highlights') .to_return(status: 200, body: response_body, headers: {content_type: 'application/json; charset=utf-8'}) end it "raises #{exception}" do