1
0
mirror of https://github.com/meineerde/redmine.git synced 2025-12-21 16:01:14 +00:00

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
This commit is contained in:
Toshi MARUYAMA 2019-11-24 05:26:44 +00:00
parent b4bcf64dc7
commit d535dd8355

View File

@ -36,11 +36,13 @@ class RepositoriesGitControllerTest < Redmine::RepositoryControllerTest
User.current = nil User.current = nil
@project = Project.find(PRJ_ID) @project = Project.find(PRJ_ID)
@repository = Repository::Git.create( @repository =
:project => @project, Repository::Git.
:url => REPOSITORY_PATH, create(
:path_encoding => 'ISO-8859-1' :project => @project,
) :url => REPOSITORY_PATH,
:path_encoding => 'ISO-8859-1'
)
assert @repository assert @repository
end end
@ -391,12 +393,14 @@ class RepositoriesGitControllerTest < Redmine::RepositoryControllerTest
end end
def test_diff_path_in_subrepo def test_diff_path_in_subrepo
repo = Repository::Git.create( repo =
:project => @project, Repository::Git.
:url => REPOSITORY_PATH, create(
:identifier => 'test-diff-path', :project => @project,
:path_encoding => 'ISO-8859-1' :url => REPOSITORY_PATH,
) :identifier => 'test-diff-path',
:path_encoding => 'ISO-8859-1'
)
assert repo assert repo
assert_equal false, repo.is_default assert_equal false, repo.is_default
assert_equal 'test-diff-path', repo.identifier assert_equal 'test-diff-path', repo.identifier
@ -653,11 +657,13 @@ class RepositoriesGitControllerTest < Redmine::RepositoryControllerTest
def test_destroy_invalid_repository def test_destroy_invalid_repository
@request.session[:user_id] = 1 # admin @request.session[:user_id] = 1 # admin
@project.repository.destroy @project.repository.destroy
@repository = Repository::Git.create!( @repository =
:project => @project, Repository::Git.
:url => "/invalid", create!(
:path_encoding => 'ISO-8859-1' :project => @project,
) :url => "/invalid",
:path_encoding => 'ISO-8859-1'
)
@repository.fetch_changesets @repository.fetch_changesets
@repository.reload @repository.reload
assert_equal 0, @repository.changesets.count assert_equal 0, @repository.changesets.count