From 3eb69bec6340cfae33013771536975599bed5071 Mon Sep 17 00:00:00 2001 From: Steve Kemp Date: Wed, 29 Jul 2015 12:18:56 +0300 Subject: Ensure that protocol-handlers are lower-case. This allows you to write the following (identical) tests: foo must run FTP. foo must run ftp. foo must run FtP. This is mostly a neatness update. --- lib/custodian/testfactory.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/custodian') diff --git a/lib/custodian/testfactory.rb b/lib/custodian/testfactory.rb index 0f5a30d..770227f 100644 --- a/lib/custodian/testfactory.rb +++ b/lib/custodian/testfactory.rb @@ -78,6 +78,7 @@ module Custodian if line =~ /must\s+(not\s+)?run\s+(\S+)(\s+|\.|$)/ test_type = $2.dup + test_type = test_type.downcase test_type.chomp!('.') if @@subclasses[test_type].nil? -- cgit v1.2.1