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
@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