method
helper_method
v2.3.8 -
Show latest stable
- Class:
ActionView::TestCase
helper_method(*methods)public
No documentation available.
# File actionpack/lib/action_view/test_case.rb, line 91
def helper_method(*methods)
# Almost a duplicate from ActionController::Helpers
methods.flatten.each do |method|
master_helper_module.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