diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 006cc06f5..36e400ae1 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -395,12 +395,6 @@ Lint/UnusedBlockArgument: Lint/UnusedMethodArgument: Enabled: false -# This cop supports safe autocorrection (--autocorrect). -# Configuration parameters: ContextCreatingMethods, MethodCreatingMethods. -Lint/UselessAccessModifier: - Exclude: - - 'test/functional/repositories_git_controller_test.rb' - Lint/UselessAssignment: Enabled: false diff --git a/test/functional/repositories_git_controller_test.rb b/test/functional/repositories_git_controller_test.rb index 09458f7f9..7c785bc46 100644 --- a/test/functional/repositories_git_controller_test.rb +++ b/test/functional/repositories_git_controller_test.rb @@ -810,14 +810,6 @@ class RepositoriesGitControllerTest < Redmine::RepositoryControllerTest @project.reload assert_nil @project.repository end - - private - - def puts_pass_on_not_utf8 - puts "TODO: This test fails " + - "when Encoding.default_external is not UTF-8. " + - "Current value is '#{Encoding.default_external.to_s}'" - end else puts "Git test repository NOT FOUND. Skipping functional tests !!!" def test_fake; assert true end @@ -831,4 +823,10 @@ class RepositoriesGitControllerTest < Redmine::RepositoryControllerTest yield ActionController::Base.perform_caching = before end + + def puts_pass_on_not_utf8 + puts "TODO: This test fails " + + "when Encoding.default_external is not UTF-8. " + + "Current value is '#{Encoding.default_external.to_s}'" + end end