Merged r23618 from trunk to 5.1-stable (#42500).

git-svn-id: https://svn.redmine.org/redmine/branches/5.1-stable@23645 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Go MAEDA
2025-04-12 04:51:10 +00:00
parent 5d7fa2cd45
commit caa8b09b65
17 changed files with 21 additions and 13 deletions

View File

@@ -37,6 +37,7 @@ class RepositoriesBazaarControllerTest < Redmine::RepositoryControllerTest
:log_encoding => 'UTF-8'
)
assert @repository
skip "SCM command is unavailable" unless @repository.class.scm_available
end
if File.directory?(REPOSITORY_PATH)

View File

@@ -186,6 +186,7 @@ class RepositoriesControllerTest < Redmine::RepositoryControllerTest
def test_show_without_main_repository_should_display_first_repository
skip unless repository_configured?('subversion')
skip unless Repository::Subversion.scm_available
project = Project.find(1)
repos = project.repositories
@@ -208,6 +209,7 @@ class RepositoriesControllerTest < Redmine::RepositoryControllerTest
def test_show_should_show_diff_button_depending_on_browse_repository_permission
skip unless repository_configured?('subversion')
skip unless Repository::Subversion.scm_available
@request.session[:user_id] = 2
role = Role.find(1)

View File

@@ -40,6 +40,7 @@ class RepositoriesCvsControllerTest < Redmine::RepositoryControllerTest
:url => MODULE_NAME,
:log_encoding => 'UTF-8')
assert @repository
skip "SCM command is unavailable" unless @repository.class.scm_available
end
if File.directory?(REPOSITORY_PATH)

View File

@@ -41,6 +41,7 @@ class RepositoriesGitControllerTest < Redmine::RepositoryControllerTest
:path_encoding => 'ISO-8859-1'
)
assert @repository
skip "SCM command is unavailable" unless @repository.class.scm_available
end
def test_create_and_update

View File

@@ -37,6 +37,8 @@ class RepositoriesMercurialControllerTest < Redmine::RepositoryControllerTest
:path_encoding => 'ISO-8859-1'
)
assert @repository
skip "SCM command is unavailable" unless @repository.class.scm_available
@diff_c_support = true
end

View File

@@ -34,6 +34,7 @@ class RepositoriesSubversionControllerTest < Redmine::RepositoryControllerTest
@repository = Repository::Subversion.create(:project => @project,
:url => self.class.subversion_repository_url)
assert @repository
skip "SCM command is unavailable" unless @repository.class.scm_available
end
if repository_configured?('subversion')