Changeset 8749
- Timestamp:
- 01/30/08 01:32:28 (7 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/actionpack/lib/action_controller/test_case.rb
r8570 r8749 4 4 class NonInferrableControllerError < ActionControllerError 5 5 def initialize(name) 6 @name = name 6 7 super "Unable to determine the controller to test from #{name}. " + 7 8 "You'll need to specify it using 'tests YourController' in your " + 8 "test case definition" 9 "test case definition. This could mean that #{inferred_controller_name} does not exist " + 10 "or it contains syntax errors" 11 end 12 13 def inferred_controller_name 14 @name.sub(/Test$/, '') 9 15 end 10 16 end