summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/unit/lib/redmine/hook_test.rb6
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