instance method
tests
Ruby on Rails 8.0.4
Since v3.0.20Signature
tests(helper_class)
No documentation comment.
Parameters
-
helper_classreq
Source
# File actionview/lib/action_view/test_case.rb, line 155
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 actionview/lib/action_view/test_case.rb line 155
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionView::TestCase::Behavior::ClassMethods