Skip to content

Commit

Permalink
use legacy hash syntax for legacy rubies
Browse files Browse the repository at this point in the history
  • Loading branch information
nov committed Jul 12, 2023
1 parent 948a946 commit dd60580
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spec/omniauth/strategies/oauth2_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -151,9 +151,9 @@ def app
end

{
invalid_credentials: [OAuth2::Error, OmniAuth::Strategies::OAuth2::CallbackError],
timeout: [Timeout::Error, Errno::ETIMEDOUT, OAuth2::TimeoutError, OAuth2::ConnectionError],
failed_to_connect: [SocketError]
:invalid_credentials => [OAuth2::Error, OmniAuth::Strategies::OAuth2::CallbackError],
:timeout => [Timeout::Error, Errno::ETIMEDOUT, OAuth2::TimeoutError, OAuth2::ConnectionError],
:failed_to_connect => [SocketError]
}.each do |error_type, exceptions|
exceptions.each do |klass|
context "when #{klass}" do
Expand Down

0 comments on commit dd60580

Please sign in to comment.