summaryrefslogtreecommitdiff
path: root/t/test-custodian-testfactory.rb
diff options
context:
space:
mode:
authorSteve Kemp <steve@steve.org.uk>2012-11-23 16:03:27 +0000
committerSteve Kemp <steve@steve.org.uk>2012-11-23 16:03:27 +0000
commit75a527380f8059de660fe911be4f6acf63da3cde (patch)
treef09f57a4138d42901b5bf694ea51f8787087bdd6 /t/test-custodian-testfactory.rb
parent3cf93c18f70758453899fa8bfa71591fcb6e83f5 (diff)
Test that inverted() works for each protocol test we know about.
Diffstat (limited to 't/test-custodian-testfactory.rb')
-rwxr-xr-xt/test-custodian-testfactory.rb8
1 files changed, 6 insertions, 2 deletions
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