diff options
| -rw-r--r-- | lib/custodian/testfactory.rb | 5 | 
1 files changed, 5 insertions, 0 deletions
| diff --git a/lib/custodian/testfactory.rb b/lib/custodian/testfactory.rb index 41bc445..fc007e9 100644 --- a/lib/custodian/testfactory.rb +++ b/lib/custodian/testfactory.rb @@ -48,6 +48,11 @@ module Custodian          test_type = $2.dup          test_type.chomp!( "." ) +        if ( @@subclasses[test_type].nil? ) +            raise ArgumentError, "There is no handler registered for the '#{test_type}' test-type" +        end + +          #          #  For each of the test-classes that implement the type          # | 
