Patch by Marius BALTEANU.
git-svn-id: http://svn.redmine.org/redmine/trunk@20889
e93f8b46-1217-0410-a6f0-
8f06a7374b81
@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