method
helper_method
v5.2.3 -
Show latest stable
- Class:
ActionView::TestCase::Behavior::ClassMethods
helper_method(*methods)public
No documentation available.
# File actionview/lib/action_view/test_case.rb, line 73
def helper_method(*methods)
# Almost a duplicate from ActionController::Helpers
methods.flatten.each do |method|
_helpers.module_eval def #{method}(*args, &block) # def current_user(*args, &block) _test_case.send(%(#{method}), *args, &block) # _test_case.send(%(current_user), *args, &block) end # end, __FILE__, __LINE__ + 1
end
end