summaryrefslogtreecommitdiff
path: root/lib/custodian/protocoltest/dns.rb
diff options
context:
space:
mode:
authorSteve Kemp <steve@steve.org.uk>2012-11-22 06:49:21 +0000
committerSteve Kemp <steve@steve.org.uk>2012-11-22 06:49:21 +0000
commitb6043eb5abc3b54d48ef1ed41f65ae71d427c588 (patch)
tree8b4d9feb4403c842af29451de35aa5f94836d70b /lib/custodian/protocoltest/dns.rb
parent8e349f739803b3eaa8e196e257c92f90850c1296 (diff)
Moved tests into a namespace.
Diffstat (limited to 'lib/custodian/protocoltest/dns.rb')
-rw-r--r--lib/custodian/protocoltest/dns.rb87
1 files changed, 46 insertions, 41 deletions
diff --git a/lib/custodian/protocoltest/dns.rb b/lib/custodian/protocoltest/dns.rb
index ab26a30..0fccb96 100644
--- a/lib/custodian/protocoltest/dns.rb
+++ b/lib/custodian/protocoltest/dns.rb
@@ -9,75 +9,80 @@
###
#
#
-class DNSTest < TestFactory
+module Custodian
+ module ProtocolTest
+ class DNSTest < TestFactory
- #
- # The line from which we were constructed.
- #
- attr_reader :line
+ #
+ # The line from which we were constructed.
+ #
+ attr_reader :line
- #
- # Constructor
- #
- def initialize( line )
- #
- # Save the line
- #
- @line = line
+ #
+ # Constructor
+ #
+ def initialize( line )
- end
+ #
+ # Save the line
+ #
+ @line = line
+ end
- #
- # Helper for development.
- #
- def to_s
- "dns-test - TODO."
- end
+ #
+ # Helper for development.
+ #
+ def to_s
+ "dns-test - TODO."
+ end
- #
- # Convert this class to JSON such that it may be serialized.
- #
- def to_json
- hash = { :line => @line }
- hash.to_json
- end
+ #
+ # Convert this class to JSON such that it may be serialized.
+ #
+ def to_json
+ hash = { :line => @line }
+ hash.to_json
+ end
- #
- # Run the test.
- #
- def run_test
- @error = "Not implemented"
- false
- end
+ #
+ # Run the test.
+ #
+ def run_test
+ @error = "Not implemented"
+ false
+ end
- #
- # If the test fails then report the error.
- #
- def error
- @error
- end
+
+ #
+ # If the test fails then report the error.
+ #
+ def error
+ @error
+ end
- register_test_type "dns"
+ register_test_type "dns"
+ end
+ end
end