]> source.dussan.org Git - redmine.git/commitdiff
cleanup: rubocop: fix Layout/SpaceInsideParens in test/unit/user_test.rb
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sun, 24 Nov 2019 05:26:11 +0000 (05:26 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sun, 24 Nov 2019 05:26:11 +0000 (05:26 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@19227 e93f8b46-1217-0410-a6f0-8f06a7374b81

.rubocop_todo.yml
test/unit/user_test.rb

index b3ee67d06fc9383b3efb6cc6ec4f9311cb7408d7..0a7dea724bcc5e788ba48b766bfde5697ce50444 100644 (file)
@@ -321,7 +321,6 @@ Layout/SpaceInsideParens:
     - 'test/unit/lib/redmine/wiki_formatting/textile_formatter_test.rb'
     - 'test/unit/query_test.rb'
     - 'test/unit/repository_test.rb'
-    - 'test/unit/user_test.rb'
 
 # Cop supports --auto-correct.
 Layout/SpaceInsidePercentLiteralDelimiters:
index 582c8820077abc8672c9a910d603690aad64cca0..28de74263511660beba283ff54ed2b749489fedc 100644 (file)
@@ -1291,30 +1291,30 @@ class UserTest < ActiveSupport::TestCase
   if Object.const_defined?(:OpenID)
     def test_setting_identity_url
       normalized_open_id_url = 'http://example.com/'
-      u = User.new( :identity_url => 'http://example.com/' )
+      u = User.new(:identity_url => 'http://example.com/')
       assert_equal normalized_open_id_url, u.identity_url
     end
 
     def test_setting_identity_url_without_trailing_slash
       normalized_open_id_url = 'http://example.com/'
-      u = User.new( :identity_url => 'http://example.com' )
+      u = User.new(:identity_url => 'http://example.com')
       assert_equal normalized_open_id_url, u.identity_url
     end
 
     def test_setting_identity_url_without_protocol
       normalized_open_id_url = 'http://example.com/'
-      u = User.new( :identity_url => 'example.com' )
+      u = User.new(:identity_url => 'example.com')
       assert_equal normalized_open_id_url, u.identity_url
     end
 
     def test_setting_blank_identity_url
-      u = User.new( :identity_url => 'example.com' )
+      u = User.new(:identity_url => 'example.com')
       u.identity_url = ''
       assert u.identity_url.blank?
     end
 
     def test_setting_invalid_identity_url
-      u = User.new( :identity_url => 'this is not an openid url' )
+      u = User.new(:identity_url => 'this is not an openid url')
       assert u.identity_url.blank?
     end
   else