Methods
Public Class methods
[ show source ]
# File 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
[ show source ]
# File actionpack/lib/action_controller/test_case.rb, line 13
13: def inferred_controller_name
14: @name.sub(/Test$/, '')
15: end