class ActionController::TestCase

Public Class Methods

determine_default_controller_class(name) click to toggle source

Resolve the controller from the test name when using the spec DSL

# File lib/minitest/rails.rb, line 68
def self.determine_default_controller_class(name)
  controller = determine_constant_from_test_name(name) do |constant|
    Class === constant && constant < ActionController::Metal
  end
  raise NameError.new("Unable to resolve controller for #{name}") if controller.nil?
  controller
end