summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorSteve Kemp <steve@steve.org.uk>2012-11-24 15:03:27 +0000
committerSteve Kemp <steve@steve.org.uk>2012-11-24 15:03:27 +0000
commit9b8d86492b1f3dfff74c801e9b075e02efc7a6d7 (patch)
tree32d75ded6e0e9687fbdb8ac214aabefd3084a68f /t
parente2efc7e43928b0ad9a88172e73fbd449edbe4eae (diff)
Test that the type we guessed is the correct type
Diffstat (limited to 't')
-rwxr-xr-xt/test-custodian-testfactory.rb7
1 files changed, 6 insertions, 1 deletions
diff --git a/t/test-custodian-testfactory.rb b/t/test-custodian-testfactory.rb
index dd39ee1..65abc5b 100755
--- a/t/test-custodian-testfactory.rb
+++ b/t/test-custodian-testfactory.rb
@@ -214,7 +214,9 @@ class TestTestFactory < Test::Unit::TestCase
#
# NOTE: Skip the DNS test - it is more complex.
#
- next if ( tst =~ /dns/ )
+ # Skip the HTTP test because the HTTPS test is a super-set.
+ #
+ next if ( tst =~ /^(dns|http)$/ )
# normal
test_one = "http://foo/ must run #{tst} on 1234"
@@ -227,6 +229,9 @@ class TestTestFactory < Test::Unit::TestCase
test_two_obj = Custodian::TestFactory.create( test_two )
assert( test_two_obj.inverted(), "Found inverted test for #{tst}" )
+
+ assert_equal( tst, test_one_obj.get_type )
+ assert_equal( tst, test_two_obj.get_type )
end
end
end