From c424057b0770801341e0429e30ee73555a637bea Mon Sep 17 00:00:00 2001 From: stve Date: Sun, 30 Aug 2015 22:45:13 -0400 Subject: [PATCH] simplify error fixtures --- 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 709f745..75a39f3 100644 --- a/spec/instapaper/error_spec.rb +++ b/spec/instapaper/error_spec.rb @@ -21,7 +21,7 @@ describe Instapaper::Error do Instapaper::Error::ERRORS.each do |status, exception| context "when HTTP status is #{status}" do - let(:response_body) { %([{"type":"error", "error_code":#{status}, "message":"Error Message URL"}]) } + let(:response_body) { %([{"type":"error", "error_code":#{status}, "message":"Error Message"}]) } before do stub_post('/api/1/oauth/access_token') .to_return(status: 200, body: response_body, headers: {content_type: 'application/json; charset=utf-8'}) @@ -34,7 +34,7 @@ describe Instapaper::Error do Instapaper::Error::BOOKMARK_ERRORS.each do |status, exception| context "when HTTP status is #{status}" do - let(:response_body) { %([{"type":"error", "error_code":#{status}, "message":"Error Message URL"}]) } + let(:response_body) { %([{"type":"error", "error_code":#{status}, "message":"Error Message"}]) } before do stub_post('/api/1/bookmarks/list') .to_return(status: 200, body: response_body, headers: {content_type: 'application/json; charset=utf-8'}) @@ -47,7 +47,7 @@ describe Instapaper::Error do Instapaper::Error::FOLDER_ERRORS.each do |status, exception| context "when HTTP status is #{status}" do - let(:response_body) { %([{"type":"error", "error_code":#{status}, "message":"Error Message URL"}]) } + let(:response_body) { %([{"type":"error", "error_code":#{status}, "message":"Error Message"}]) } before do stub_post('/api/1/folders/list') .to_return(status: 200, body: response_body, headers: {content_type: 'application/json; charset=utf-8'}) @@ -60,7 +60,7 @@ describe Instapaper::Error do Instapaper::Error::HIGHLIGHT_ERRORS.each do |status, exception| context "when HTTP status is #{status}" do - let(:response_body) { %([{"type":"error", "error_code":#{status}, "message":"Error Message URL"}]) } + let(:response_body) { %([{"type":"error", "error_code":#{status}, "message":"Error Message"}]) } before do stub_post('/api/1.1/bookmarks/123/highlights') .to_return(status: 200, body: response_body, headers: {content_type: 'application/json; charset=utf-8'})