diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index f6ca447d7..14e1519ce 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -530,7 +530,6 @@ Performance/FixedSize: Performance/RedundantBlockCall: Exclude: - 'app/controllers/application_controller.rb' - - 'test/functional/repositories_git_controller_test.rb' # Cop supports --auto-correct. Performance/RedundantMatch: diff --git a/test/functional/repositories_git_controller_test.rb b/test/functional/repositories_git_controller_test.rb index fbb9e69dc..a8c89eb39 100644 --- a/test/functional/repositories_git_controller_test.rb +++ b/test/functional/repositories_git_controller_test.rb @@ -689,7 +689,7 @@ class RepositoriesGitControllerTest < Redmine::RepositoryControllerTest def with_cache(&block) before = ActionController::Base.perform_caching ActionController::Base.perform_caching = true - block.call + yield ActionController::Base.perform_caching = before end end