summaryrefslogtreecommitdiff
path: root/lib/custodian/protocoltest/dns.rb
diff options
context:
space:
mode:
authorSteve Kemp <steve@steve.org.uk>2012-11-23 16:03:27 +0000
committerSteve Kemp <steve@steve.org.uk>2012-11-23 16:03:27 +0000
commit5ed5667803eb44780cdbc5e4183c1f55daaf2555 (patch)
treef09f57a4138d42901b5bf694ea51f8787087bdd6 /lib/custodian/protocoltest/dns.rb
parent21659bf0caab820d3c90efe3785c7521974272a8 (diff)
Test that inverted() works for each protocol test we know about.
Diffstat (limited to 'lib/custodian/protocoltest/dns.rb')
-rw-r--r--lib/custodian/protocoltest/dns.rb8
1 files changed, 8 insertions, 0 deletions
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