instance method
tests
Ruby on Rails 3.1.12
Since v3.0.20Signature
tests(controller_class)
Sets the controller class name. Useful if the name can’t be inferred from test class. Expects controller_class as a constant. Example: tests WidgetController.
Parameters
-
controller_classreq
Source
# File actionpack/lib/action_controller/test_case.rb, line 340
def tests(controller_class)
self.controller_class = controller_class
end
Defined in actionpack/lib/action_controller/test_case.rb line 340
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionController::TestCase::Behavior::ClassMethods