Avoid comma after the last item of a hash

This commit is contained in:
Erik Michaels-Ober 2015-12-19 06:10:33 -05:00
parent 32c4165919
commit 8d4ec79835
5 changed files with 5 additions and 8 deletions

View File

@ -55,6 +55,3 @@ Style/RaiseArgs:
Style/SpaceInsideHashLiteralBraces:
EnforcedStyle: no_space
Style/TrailingComma:
EnforcedStyleForMultiline: 'comma'

View File

@ -42,7 +42,7 @@ module OmniAuth
:test_mode => false,
:logger => default_logger,
:allowed_request_methods => [:get, :post],
:mock_auth => {:default => AuthHash.new('provider' => 'default', 'uid' => '1234', 'info' => {'name' => 'Example User'})},
:mock_auth => {:default => AuthHash.new('provider' => 'default', 'uid' => '1234', 'info' => {'name' => 'Example User'})}
}
end

View File

@ -38,7 +38,7 @@ describe OmniAuth::AuthHash do
:first_name => 'Phillip',
:last_name => 'Fry',
:nickname => 'meatbag',
:email => 'fry@planetexpress.com',
:email => 'fry@planetexpress.com'
})
end

View File

@ -5,7 +5,7 @@ def make_env(path = '/auth/test', props = {})
'REQUEST_METHOD' => 'GET',
'PATH_INFO' => path,
'rack.session' => {},
'rack.input' => StringIO.new('test=true'),
'rack.input' => StringIO.new('test=true')
}.merge(props)
end
@ -331,7 +331,7 @@ describe OmniAuth::Strategy do
it 'is turned into an env variable on the callback phase, containing full path' do
env = {
'rack.session' => {'omniauth.origin' => 'http://example.com/sub_uri/origin'},
'SCRIPT_NAME' => '/sub_uri',
'SCRIPT_NAME' => '/sub_uri'
}
expect { strategy.call(make_env('/auth/test/callback', env)) }.to raise_error('Callback Phase')

View File

@ -140,7 +140,7 @@ describe OmniAuth do
'some_word' => 'SomeWord',
'AnotherWord' => 'AnotherWord',
'one' => 'One',
'three_words_now' => 'ThreeWordsNow',
'three_words_now' => 'ThreeWordsNow'
}.each_pair { |k, v| expect(OmniAuth::Utils.camelize(k)).to eq(v) }
end