summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/functional/repositories_git_controller_test.rb2
1 files changed, 1 insertions, 1 deletions
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