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:
parent
d02ba8c7ad
commit
df7eeab8d6
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue