fix rubocop errors

This commit is contained in:
Thomas Walpole 2015-12-17 09:42:17 -08:00
parent d6a592f8ea
commit d91dbcc479
3 changed files with 3 additions and 3 deletions

View File

@ -40,7 +40,7 @@ module OmniAuth
end end
def name? def name?
!!name # rubocop:disable DoubleNegation !!name
end end
alias_method :valid?, :name? alias_method :valid?, :name?

View File

@ -1,5 +1,5 @@
module OmniAuth module OmniAuth
class Form # rubocop:disable ClassLength class Form
DEFAULT_CSS = File.read(File.expand_path('../form.css', __FILE__)) DEFAULT_CSS = File.read(File.expand_path('../form.css', __FILE__))
attr_accessor :options attr_accessor :options

View File

@ -607,7 +607,7 @@ describe OmniAuth::Strategy do
it 'responds with a provider-specific hash if one is set' do it 'responds with a provider-specific hash if one is set' do
OmniAuth.config.mock_auth[:test] = { OmniAuth.config.mock_auth[:test] = {
'uid' => 'abc', 'uid' => 'abc'
} }
strategy.call make_env('/auth/test/callback') strategy.call make_env('/auth/test/callback')