diff options
author | Go MAEDA <maeda@farend.jp> | 2021-04-01 15:05:15 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2021-04-01 15:05:15 +0000 |
commit | 474c1d4e35247d8cc726c854beb4d61ae4f84ec7 (patch) | |
tree | 21a467419461f650bc81133b38fd5d7a30d9f45a /test/unit/lib | |
parent | f223f707da62dce350f760fa04f870fd9ce0274a (diff) | |
download | redmine-474c1d4e35247d8cc726c854beb4d61ae4f84ec7.tar.gz redmine-474c1d4e35247d8cc726c854beb4d61ae4f84ec7.zip |
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
Diffstat (limited to 'test/unit/lib')
-rw-r--r-- | test/unit/lib/redmine/hook_test.rb | 6 |
1 files changed, 5 insertions, 1 deletions
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 |