From d91dbcc4793ee83a4cc7ef649e9d526852428647 Mon Sep 17 00:00:00 2001 From: Thomas Walpole Date: Thu, 17 Dec 2015 09:42:17 -0800 Subject: [PATCH] fix rubocop errors --- lib/omniauth/auth_hash.rb | 2 +- lib/omniauth/form.rb | 2 +- spec/omniauth/strategy_spec.rb | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/omniauth/auth_hash.rb b/lib/omniauth/auth_hash.rb index 5893478..b2b05b3 100644 --- a/lib/omniauth/auth_hash.rb +++ b/lib/omniauth/auth_hash.rb @@ -40,7 +40,7 @@ module OmniAuth end def name? - !!name # rubocop:disable DoubleNegation + !!name end alias_method :valid?, :name? diff --git a/lib/omniauth/form.rb b/lib/omniauth/form.rb index dd1fda3..fecc636 100644 --- a/lib/omniauth/form.rb +++ b/lib/omniauth/form.rb @@ -1,5 +1,5 @@ module OmniAuth - class Form # rubocop:disable ClassLength + class Form DEFAULT_CSS = File.read(File.expand_path('../form.css', __FILE__)) attr_accessor :options diff --git a/spec/omniauth/strategy_spec.rb b/spec/omniauth/strategy_spec.rb index def36fb..789f829 100644 --- a/spec/omniauth/strategy_spec.rb +++ b/spec/omniauth/strategy_spec.rb @@ -607,7 +607,7 @@ describe OmniAuth::Strategy do it 'responds with a provider-specific hash if one is set' do OmniAuth.config.mock_auth[:test] = { - 'uid' => 'abc', + 'uid' => 'abc' } strategy.call make_env('/auth/test/callback')