method
helper_method
v3.0.0 -
Show latest stable
- Class:
ActionView::TestCase::Behavior::ClassMethods
helper_method(*methods)public
No documentation available.
# File actionpack/lib/action_view/test_case.rb, line 60
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)\n_test_case.send(%(\#{method}), *args, &block) # test_case.send(%(current_user), *args, &block)\nend # end\n"
end
end