mirror of
https://github.com/redmine/redmine.git
synced 2025-11-14 01:06:00 +01:00
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
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user