From aaad894cc9e9fd7d13da595e752137c377761c1b Mon Sep 17 00:00:00 2001 From: Peter Boling Date: Mon, 1 Nov 2021 03:07:15 +0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=A8=20Linting?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Peter Boling --- lib/oauth/consumer.rb | 2 +- test/units/test_consumer.rb | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/oauth/consumer.rb b/lib/oauth/consumer.rb index ccb0b8a9..a840f94c 100644 --- a/lib/oauth/consumer.rb +++ b/lib/oauth/consumer.rb @@ -243,7 +243,7 @@ def token_request(http_method, path, token = nil, request_options = {}, *argumen end when (300..399) # Parse redirect to follow - uri = URI.parse(response['location']) + uri = URI.parse(response["location"]) our_uri = URI.parse(site) # Guard against infinite redirects diff --git a/test/units/test_consumer.rb b/test/units/test_consumer.rb index 43eecf7d..deb19fc1 100644 --- a/test/units/test_consumer.rb +++ b/test/units/test_consumer.rb @@ -269,13 +269,13 @@ def test_not_following_redirect_with_same_uri stub_request(:get, request_uri.to_s).to_return( :status => 301, - :headers => {'Location' => redirect_uri.to_s} + :headers => {"Location" => redirect_uri.to_s} ) assert_raises Net::HTTPRetriableError do - @consumer.token_request(:get, request_uri.path) { - { :oauth_token => 'token', :oauth_token_secret => 'secret' } - } + @consumer.token_request(:get, request_uri.path) do + { :oauth_token => "token", :oauth_token_secret => "secret" } + end end end