diff --git a/lib/omniauth.rb b/lib/omniauth.rb index 2ab7e97..2f11c9f 100644 --- a/lib/omniauth.rb +++ b/lib/omniauth.rb @@ -87,7 +87,7 @@ module OmniAuth mock = {} original.each_pair do |key, val| mock[key.to_s] = if val.is_a? Hash - Hash[val.each_pair{ |k,v| [k.to_s, v] }] + Hash[val.each_pair { |k, v| [k.to_s, v] }] else val end diff --git a/spec/omniauth_spec.rb b/spec/omniauth_spec.rb index 133bc39..6c6b61a 100644 --- a/spec/omniauth_spec.rb +++ b/spec/omniauth_spec.rb @@ -90,7 +90,7 @@ describe OmniAuth do describe 'mock auth' do before do - @auth_hash = { :uid => '12345', :info => {:name => 'Joe', :email => 'joe@example.com'} } + @auth_hash = {:uid => '12345', :info => {:name => 'Joe', :email => 'joe@example.com'}} @original_auth_hash = Marshal.load(Marshal.dump(@auth_hash)) OmniAuth.config.add_mock(:facebook, @auth_hash) @@ -113,7 +113,7 @@ describe OmniAuth do end end it 'does not mutate given auth hash' do - OmniAuth.configure do |config| + OmniAuth.configure do expect(@auth_hash).to eq @original_auth_hash end end