diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2019-11-23 15:12:35 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2019-11-23 15:12:35 +0000 |
commit | caa88a2ed308224edc66f411b1466a7e622994c3 (patch) | |
tree | 79319b5ecbe4c9b6e7de11225fcd5cf32a40204c | |
parent | 80856bf5175b6a8e05e92b2dc17520ee132aadf5 (diff) | |
download | redmine-caa88a2ed308224edc66f411b1466a7e622994c3.tar.gz redmine-caa88a2ed308224edc66f411b1466a7e622994c3.zip |
cleanup: rubocop: fix Layout/IndentationConsistency in test/mocks/open_id_authentication_mock.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@19220 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r-- | .rubocop_todo.yml | 7 | ||||
-rw-r--r-- | test/mocks/open_id_authentication_mock.rb | 8 |
2 files changed, 4 insertions, 11 deletions
diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index c8ea9ab15..b3ee67d06 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -172,13 +172,6 @@ Layout/IndentFirstHashElement: Enabled: false # Cop supports --auto-correct. -# Configuration parameters: EnforcedStyle. -# SupportedStyles: normal, indented_internal_methods -Layout/IndentationConsistency: - Exclude: - - 'test/mocks/open_id_authentication_mock.rb' - -# Cop supports --auto-correct. # Configuration parameters: Width, IgnoredPatterns. Layout/IndentationWidth: Enabled: false diff --git a/test/mocks/open_id_authentication_mock.rb b/test/mocks/open_id_authentication_mock.rb index d2c04c4bc..dcc8ed441 100644 --- a/test/mocks/open_id_authentication_mock.rb +++ b/test/mocks/open_id_authentication_mock.rb @@ -15,7 +15,7 @@ module OpenIdAuthentication protected - def authenticate_with_open_id(identity_url = params[:openid_url], options = {}) + def authenticate_with_open_id(identity_url = params[:openid_url], options = {}) if User.find_by_identity_url(identity_url) || identity_url.include?('good') extension_response_fields = {} @@ -38,12 +38,12 @@ module OpenIdAuthentication logger.info "OpenID authentication failed: #{identity_url}" yield Result[:failed], identity_url, nil end - end + end private - def add_simple_registration_fields(open_id_response, fields) + def add_simple_registration_fields(open_id_response, fields) open_id_response.add_extension_arg('sreg', 'required', [ fields[:required] ].flatten * ',') if fields[:required] open_id_response.add_extension_arg('sreg', 'optional', [ fields[:optional] ].flatten * ',') if fields[:optional] - end + end end |