From b6043eb5abc3b54d48ef1ed41f65ae71d427c588 Mon Sep 17 00:00:00 2001 From: Steve Kemp Date: Thu, 22 Nov 2012 06:49:21 +0000 Subject: Moved tests into a namespace. --- lib/custodian/protocoltest/dns.rb | 87 +++++++++++++++++++++------------------ 1 file changed, 46 insertions(+), 41 deletions(-) (limited to 'lib/custodian/protocoltest/dns.rb') 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 -- cgit v1.2.1