summaryrefslogtreecommitdiff
path: root/lib/custodian/testfactory.rb
diff options
context:
space:
mode:
authorSteve Kemp <steve@steve.org.uk>2015-07-29 12:18:56 +0300
committerSteve Kemp <steve@steve.org.uk>2015-07-29 12:18:56 +0300
commit3eb69bec6340cfae33013771536975599bed5071 (patch)
tree389aa0b7b93f2d824561ac07ec34bb616c449a2d /lib/custodian/testfactory.rb
parent1af3f5f4f9a12e8ccd6bd398da657e5356fab91c (diff)
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.
Diffstat (limited to 'lib/custodian/testfactory.rb')
-rw-r--r--lib/custodian/testfactory.rb1
1 files changed, 1 insertions, 0 deletions
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?