From 69acb34d89e05637f04531f4ba8903f1dd887383 Mon Sep 17 00:00:00 2001 From: Steve Kemp Date: Mon, 9 Mar 2015 14:43:10 +0000 Subject: Removed trailing whitespace from the code --- lib/custodian/testfactory.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'lib/custodian/testfactory.rb') diff --git a/lib/custodian/testfactory.rb b/lib/custodian/testfactory.rb index 64ea7c8..57bb1f7 100644 --- a/lib/custodian/testfactory.rb +++ b/lib/custodian/testfactory.rb @@ -31,8 +31,8 @@ module Custodian def self.create(line) - raise ArgumentError, 'The type of test to create cannot be nil' if line.nil? - raise ArgumentError, 'The type of test to create must be a string' unless line.kind_of? String + raise ArgumentError, 'The type of test to create cannot be nil' if line.nil? + raise ArgumentError, 'The type of test to create must be a string' unless line.kind_of? String # # The array we return. @@ -43,12 +43,12 @@ module Custodian # # If this is an obvious protocol test. # - if line =~ /must\s+(not\s+)?run\s+(\S+)(\s+|\.|$)/ + if line =~ /must\s+(not\s+)?run\s+(\S+)(\s+|\.|$)/ test_type = $2.dup test_type.chomp!('.') - if @@subclasses[test_type].nil? + if @@subclasses[test_type].nil? raise ArgumentError, "There is no handler registered for the '#{test_type}' test-type" end @@ -66,7 +66,7 @@ module Custodian # # We do this only after we've instantiated the test. # - if line =~ /\s+otherwise\s+'([^']+)'/ + if line =~ /\s+otherwise\s+'([^']+)'/ obj.set_notification_text($1.dup) end -- cgit v1.2.1