From 658bd54f49120b11e3e59c0fee505ddd2e1e3f18 Mon Sep 17 00:00:00 2001 From: stve Date: Thu, 14 Jan 2016 21:29:42 -0500 Subject: [PATCH] fix rubocop warnings --- lib/instapaper/http/request.rb | 1 - spec/instapaper/api/folders_spec.rb | 9 ++++++--- spec/instapaper/api/oauth_spec.rb | 7 +++++-- 3 files changed, 11 insertions(+), 6 deletions(-) diff --git a/lib/instapaper/http/request.rb b/lib/instapaper/http/request.rb index a7aec55..1c0c030 100644 --- a/lib/instapaper/http/request.rb +++ b/lib/instapaper/http/request.rb @@ -12,7 +12,6 @@ module Instapaper BASE_URL = 'https://www.instapaper.com' attr_accessor :client, :headers, :multipart, :options, :path, :rate_limit, :request_method, :uri - alias_method :verb, :request_method # @param client [Instapaper::Client] # @param request_method [String, Symbol] diff --git a/spec/instapaper/api/folders_spec.rb b/spec/instapaper/api/folders_spec.rb index 3185889..2f30f7e 100644 --- a/spec/instapaper/api/folders_spec.rb +++ b/spec/instapaper/api/folders_spec.rb @@ -25,7 +25,8 @@ describe Instapaper::Client::Folders do describe '#add_folder' do before do - stub_post('/api/1.1/folders/add').with(body: {title: 'Ruby'}) + stub_post('/api/1.1/folders/add') + .with(body: {title: 'Ruby'}) .to_return(body: fixture('folders_add.json'), headers: {content_type: 'application/json; charset=utf-8'}) end @@ -43,7 +44,8 @@ describe Instapaper::Client::Folders do describe '#delete_folder' do before do - stub_post('/api/1.1/folders/delete'). with(body: {folder_id: '1'}) + stub_post('/api/1.1/folders/delete') + .with(body: {folder_id: '1'}) .to_return(body: fixture('folders_delete.json'), headers: {content_type: 'application/json; charset=utf-8'}) end @@ -61,7 +63,8 @@ describe Instapaper::Client::Folders do describe '#set_order' do before do - stub_post('/api/1.1/folders/set_order'). with(body: {order: '1121173:2,1121174:1'}) + stub_post('/api/1.1/folders/set_order') + .with(body: {order: '1121173:2,1121174:1'}) .to_return(body: fixture('folders_set_order.json'), headers: {content_type: 'application/json; charset=utf-8'}) end diff --git a/spec/instapaper/api/oauth_spec.rb b/spec/instapaper/api/oauth_spec.rb index c132705..c77087e 100644 --- a/spec/instapaper/api/oauth_spec.rb +++ b/spec/instapaper/api/oauth_spec.rb @@ -5,9 +5,12 @@ describe Instapaper::Client::OAuth do describe '#token' do before do - stub_post('/api/1.1/oauth/access_token').with(body: {x_auth_username: 'ohai', x_auth_password: 'p455w0rd', x_auth_mode: 'client_auth'}) + stub_post('/api/1.1/oauth/access_token') + .with(body: {x_auth_username: 'ohai', x_auth_password: 'p455w0rd', x_auth_mode: 'client_auth'}) .to_return(body: fixture('access_token.txt'), headers: {content_type: 'text/plain; charset=utf-8'}) - stub_post('/api/1.1/oauth/access_token').with(body: {x_auth_username: 'inval1d', x_auth_password: 'cr3dentials', x_auth_mode: 'client_auth'}) + + stub_post('/api/1.1/oauth/access_token') + .with(body: {x_auth_username: 'inval1d', x_auth_password: 'cr3dentials', x_auth_mode: 'client_auth'}) .to_return(body: fixture('invalid_credentials.txt'), headers: {content_type: 'text/plain; charset=utf-8'}) end