Changeset 8838
- Timestamp:
- 02/10/08 01:10:14 (5 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/2-0-stable/actionpack/lib/action_controller/test_case.rb
r8498 r8838 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