Project

General

Profile

Defect #32910 » hook_test.rb.patch

Pavel Rosický, 2020-01-28 23:13

View differences:

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
    (1-1/1)