From d535dd83552b39c521af51c08fb71b3b4ac0c0c4 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Sun, 24 Nov 2019 05:26:44 +0000 Subject: [PATCH] cleanup: rubocop: fix Layout/ClosingParenthesisIndentation in test/functional/repositories_git_controller_test.rb git-svn-id: http://svn.redmine.org/redmine/trunk@19230 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- .../repositories_git_controller_test.rb | 38 +++++++++++-------- 1 file changed, 22 insertions(+), 16 deletions(-) diff --git a/test/functional/repositories_git_controller_test.rb b/test/functional/repositories_git_controller_test.rb index a8c89eb39..e3e3383f2 100644 --- a/test/functional/repositories_git_controller_test.rb +++ b/test/functional/repositories_git_controller_test.rb @@ -36,11 +36,13 @@ class RepositoriesGitControllerTest < Redmine::RepositoryControllerTest User.current = nil @project = Project.find(PRJ_ID) - @repository = Repository::Git.create( - :project => @project, - :url => REPOSITORY_PATH, - :path_encoding => 'ISO-8859-1' - ) + @repository = + Repository::Git. + create( + :project => @project, + :url => REPOSITORY_PATH, + :path_encoding => 'ISO-8859-1' + ) assert @repository end @@ -391,12 +393,14 @@ class RepositoriesGitControllerTest < Redmine::RepositoryControllerTest end def test_diff_path_in_subrepo - repo = Repository::Git.create( - :project => @project, - :url => REPOSITORY_PATH, - :identifier => 'test-diff-path', - :path_encoding => 'ISO-8859-1' - ) + repo = + Repository::Git. + create( + :project => @project, + :url => REPOSITORY_PATH, + :identifier => 'test-diff-path', + :path_encoding => 'ISO-8859-1' + ) assert repo assert_equal false, repo.is_default assert_equal 'test-diff-path', repo.identifier @@ -653,11 +657,13 @@ class RepositoriesGitControllerTest < Redmine::RepositoryControllerTest def test_destroy_invalid_repository @request.session[:user_id] = 1 # admin @project.repository.destroy - @repository = Repository::Git.create!( - :project => @project, - :url => "/invalid", - :path_encoding => 'ISO-8859-1' - ) + @repository = + Repository::Git. + create!( + :project => @project, + :url => "/invalid", + :path_encoding => 'ISO-8859-1' + ) @repository.fetch_changesets @repository.reload assert_equal 0, @repository.changesets.count -- 2.39.5