From 9b8d86492b1f3dfff74c801e9b075e02efc7a6d7 Mon Sep 17 00:00:00 2001 From: Steve Kemp Date: Sat, 24 Nov 2012 15:03:27 +0000 Subject: Test that the type we guessed is the correct type --- t/test-custodian-testfactory.rb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 't') 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 -- cgit v1.2.1