From 75a527380f8059de660fe911be4f6acf63da3cde Mon Sep 17 00:00:00 2001 From: Steve Kemp Date: Fri, 23 Nov 2012 16:03:27 +0000 Subject: Test that inverted() works for each protocol test we know about. --- lib/custodian/protocoltest/dns.rb | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'lib/custodian/protocoltest/dns.rb') diff --git a/lib/custodian/protocoltest/dns.rb b/lib/custodian/protocoltest/dns.rb index 6c5e8db..d1c6ee2 100644 --- a/lib/custodian/protocoltest/dns.rb +++ b/lib/custodian/protocoltest/dns.rb @@ -33,6 +33,14 @@ module Custodian # @line = line + # + # Is this test inverted? + # + if ( line =~ /must\s+not\s+run\s+/ ) + @inverted = true + else + @inverted = false + end end -- cgit v1.2.1