0010-Fix-ArgumentError-wrong-number-of-arguments-given-1-.patch

Marius BALTEANU, 2021-03-30 18:41

Download (1.03 KB)

View differences:

test/unit/lib/redmine/hook_test.rb
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.join('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
191
-