Skip to content

Commit

Permalink
🚨 Linting
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Boling <peter.boling@gmail.com>
  • Loading branch information
pboling committed Oct 31, 2021
1 parent 4584e36 commit aaad894
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lib/oauth/consumer.rb
Expand Up @@ -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
Expand Down
8 changes: 4 additions & 4 deletions test/units/test_consumer.rb
Expand Up @@ -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

Expand Down

0 comments on commit aaad894

Please sign in to comment.