From: Go MAEDA Date: Thu, 1 Apr 2021 15:05:15 +0000 (+0000) Subject: Fix ArgumentError: wrong number of arguments (given 1, expected 3) (#29914). X-Git-Tag: 5.0.0~470 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=474c1d4e35247d8cc726c854beb4d61ae4f84ec7;p=redmine.git Fix ArgumentError: wrong number of arguments (given 1, expected 3) (#29914). Patch by Marius BALTEANU. git-svn-id: http://svn.redmine.org/redmine/trunk@20889 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/test/unit/lib/redmine/hook_test.rb b/test/unit/lib/redmine/hook_test.rb index bbe12f0a7..752537177 100644 --- a/test/unit/lib/redmine/hook_test.rb +++ b/test/unit/lib/redmine/hook_test.rb @@ -184,7 +184,11 @@ class Redmine::Hook::ManagerTest < ActionView::TestCase @hook_helper ||= TestHookHelperController.new end + def lookup_context + @lookup_context ||= ActionView::LookupContext.new(ActionView::PathSet.new([Rails.root.join('app/views')])) + end + def view_hook_helper - @view_hook_helper ||= TestHookHelperView.new(Rails.root.to_s + '/app/views') + @view_hook_helper ||= TestHookHelperView.new(lookup_context, {}, hook_helper) end end