instance method
tests
Ruby on Rails 4.0.13
Since v3.0.20Signature
tests(helper_class)
No documentation comment.
Parameters
-
helper_classreq
Source
# File actionpack/lib/action_view/test_case.rb, line 53
def tests(helper_class)
case helper_class
when String, Symbol
self.helper_class = "#{helper_class.to_s.underscore}_helper".camelize.safe_constantize
when Module
self.helper_class = helper_class
end
end
Defined in actionpack/lib/action_view/test_case.rb line 53
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionView::TestCase::Behavior::ClassMethods