Skip to content

Commit dd60580

Browse files
committed
use legacy hash syntax for legacy rubies
1 parent 948a946 commit dd60580

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

spec/omniauth/strategies/oauth2_spec.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -151,9 +151,9 @@ def app
151151
end
152152

153153
{
154-
invalid_credentials: [OAuth2::Error, OmniAuth::Strategies::OAuth2::CallbackError],
155-
timeout: [Timeout::Error, Errno::ETIMEDOUT, OAuth2::TimeoutError, OAuth2::ConnectionError],
156-
failed_to_connect: [SocketError]
154+
:invalid_credentials => [OAuth2::Error, OmniAuth::Strategies::OAuth2::CallbackError],
155+
:timeout => [Timeout::Error, Errno::ETIMEDOUT, OAuth2::TimeoutError, OAuth2::ConnectionError],
156+
:failed_to_connect => [SocketError]
157157
}.each do |error_type, exceptions|
158158
exceptions.each do |klass|
159159
context "when #{klass}" do

0 commit comments

Comments
 (0)