instance method
helper_method
Ruby on Rails 3.1.12
Since v3.0.20Signature
helper_method(*methods)
No documentation comment.
Parameters
-
methodsrest
Source
# File actionpack/lib/action_view/test_case.rb, line 63
def helper_method(*methods)
# Almost a duplicate from ActionController::Helpers
methods.flatten.each do |method|
_helpers.module_eval <<-end_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
end_eval
end
end
Defined in actionpack/lib/action_view/test_case.rb line 63
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionView::TestCase::Behavior::ClassMethods