summaryrefslogtreecommitdiff
path: root/t/test-custodian-testfactory.rb
diff options
context:
space:
mode:
authorSteve Kemp <steve@steve.org.uk>2012-11-23 15:27:45 +0000
committerSteve Kemp <steve@steve.org.uk>2012-11-23 15:27:45 +0000
commitcd1750251483f82cafdfb8e6a92242097b4929c4 (patch)
tree835a09f626e1a84bacd8075a224f65b585d35034 /t/test-custodian-testfactory.rb
parent25650d2b649b8994755502e90707a148567686ca (diff)
Updated to allow the tests to be inverted via "must *not* run ..."
Diffstat (limited to 't/test-custodian-testfactory.rb')
-rwxr-xr-xt/test-custodian-testfactory.rb13
1 files changed, 13 insertions, 0 deletions
diff --git a/t/test-custodian-testfactory.rb b/t/test-custodian-testfactory.rb
index 383b0f0..9aeb6e1 100755
--- a/t/test-custodian-testfactory.rb
+++ b/t/test-custodian-testfactory.rb
@@ -125,5 +125,18 @@ class TestTestFactory < Test::Unit::TestCase
end
+
+ #
+ # Test the creation of inverted tests.
+ #
+ def test_inverted_tests
+
+
+ assert_nothing_raised do
+ assert( Custodian::TestFactory.create( "example.com must not run rsync." ) )
+ assert( Custodian::TestFactory.create( "ftp://example.com/ must not run rsync." ) )
+ assert( Custodian::TestFactory.create( "ftp://example.com/ must not run rsync on 333." ) )
+ end
+ end
end