Defect #32910 » hook_test.rb.patch
hook_test.rb (working copy) | ||
---|---|---|
184 | 184 |
@hook_helper ||= TestHookHelperController.new |
185 | 185 |
end |
186 | 186 | |
187 |
def lookup_context |
|
188 |
@lookup_context ||= ActionView::LookupContext.new(ActionView::PathSet.new(["#{Rails.root}/app/views"])) |
|
189 |
end |
|
190 | ||
187 | 191 |
def view_hook_helper |
188 |
@view_hook_helper ||= TestHookHelperView.new(Rails.root.to_s + '/app/views')
|
|
192 |
@view_hook_helper ||= TestHookHelperView.new(lookup_context, {}, hook_helper)
|
|
189 | 193 |
end |
190 | 194 |
end |