Class ActionController::NonInferrableControllerError
In: vendor/rails/actionpack/lib/action_controller/test_case.rb
Parent: ActionControllerError

Methods

Public Class methods

[Source]

    # File vendor/rails/actionpack/lib/action_controller/test_case.rb, line 5
 5:     def initialize(name)
 6:       @name = name
 7:       super "Unable to determine the controller to test from #{name}. " +
 8:         "You'll need to specify it using 'tests YourController' in your " +
 9:         "test case definition. This could mean that #{inferred_controller_name} does not exist " +
10:         "or it contains syntax errors"
11:     end

Public Instance methods

[Source]

    # File vendor/rails/actionpack/lib/action_controller/test_case.rb, line 13
13:     def inferred_controller_name
14:       @name.sub(/Test$/, '')
15:     end

[Validate]