1
0
Fork 0
mirror of https://github.com/omniauth/omniauth.git synced 2022-11-09 12:31:49 -05:00

Adapt code standards in order not to offend travis

This commit is contained in:
marc 2015-05-13 17:02:11 +02:00 committed by Marc Busqué
parent d02ba8c7ad
commit df7eeab8d6
2 changed files with 2 additions and 2 deletions

View file

@ -505,7 +505,7 @@ module OmniAuth
end
def headers
headers = env.select { |key, value| key.start_with? 'HTTP_' }
headers = env.select { |key, _value| key.start_with? 'HTTP_' }
Hash[headers.map { |key, value| [key.sub(/^HTTP_/, ''), value] }]
end
end

View file

@ -706,7 +706,7 @@ describe OmniAuth::Strategy do
it 'sets omniauth.headers on the request phase' do
OmniAuth.config.mock_auth[:test] = {}
strategy.call(make_env('/auth/test', { 'HTTP_FOO' => 'bar' }))
strategy.call(make_env('/auth/test', 'HTTP_FOO' => 'bar'))
expect(strategy.env['rack.session']['omniauth.headers']).to eq('FOO' => 'bar')
end