From 5ed5667803eb44780cdbc5e4183c1f55daaf2555 Mon Sep 17 00:00:00 2001 From: Steve Kemp Date: Fri, 23 Nov 2012 16:03:27 +0000 Subject: Test that inverted() works for each protocol test we know about. --- t/test-custodian-testfactory.rb | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 't/test-custodian-testfactory.rb') diff --git a/t/test-custodian-testfactory.rb b/t/test-custodian-testfactory.rb index b7834ea..0f4777a 100755 --- a/t/test-custodian-testfactory.rb +++ b/t/test-custodian-testfactory.rb @@ -189,8 +189,12 @@ class TestTestFactory < Test::Unit::TestCase test_two = "http://foo/ must not run #{tst} on 12345" assert_nothing_raised do - assert( Custodian::TestFactory.create( test_one ) ) - assert( Custodian::TestFactory.create( test_two ) ) + + test_one_obj = Custodian::TestFactory.create( test_one ) + assert( !test_one_obj.inverted() ) + + test_two_obj = Custodian::TestFactory.create( test_two ) + assert( test_two_obj.inverted(), "Found inverted test for #{tst}" ) end end end -- cgit v1.2.1