From b4bcf64dc73a5b9ca7b010f0fabf0290c2e7cf4a Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Sun, 24 Nov 2019 05:26:33 +0000 Subject: [PATCH] cleanup: rubocop: fix Layout/SpaceInsideArrayLiteralBrackets in test/mocks/open_id_authentication_mock.rb git-svn-id: http://svn.redmine.org/redmine/trunk@19229 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- .rubocop_todo.yml | 1 - test/mocks/open_id_authentication_mock.rb | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 386de908b..82c105443 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -281,7 +281,6 @@ Layout/SpaceInsideArrayLiteralBrackets: - 'app/models/query.rb' - 'lib/diff.rb' - 'lib/redmine/i18n.rb' - - 'test/mocks/open_id_authentication_mock.rb' - 'test/unit/mailer_localisation_test.rb' - 'test/unit/mailer_test.rb' - 'test/unit/search_test.rb' diff --git a/test/mocks/open_id_authentication_mock.rb b/test/mocks/open_id_authentication_mock.rb index dcc8ed441..a6d5cd030 100644 --- a/test/mocks/open_id_authentication_mock.rb +++ b/test/mocks/open_id_authentication_mock.rb @@ -43,7 +43,7 @@ module OpenIdAuthentication private 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] + 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 -- 2.39.5