]> source.dussan.org Git - redmine.git/commitdiff
Fix ArgumentError: wrong number of arguments (given 1, expected 3) (#29914).
authorGo MAEDA <maeda@farend.jp>
Thu, 1 Apr 2021 15:05:15 +0000 (15:05 +0000)
committerGo MAEDA <maeda@farend.jp>
Thu, 1 Apr 2021 15:05:15 +0000 (15:05 +0000)
Patch by Marius BALTEANU.

git-svn-id: http://svn.redmine.org/redmine/trunk@20889 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/unit/lib/redmine/hook_test.rb

index bbe12f0a78e69f16e98c5d0fc6276ea8d638f8ed..752537177cc273b63444d3f1eb47bb21d25f3dce 100644 (file)
@@ -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