summaryrefslogtreecommitdiff
path: root/t/test-custodian-testfactory.rb
diff options
context:
space:
mode:
authorSteve Kemp <steve@steve.org.uk>2012-11-24 16:32:35 +0000
committerSteve Kemp <steve@steve.org.uk>2012-11-24 16:32:35 +0000
commitd97e9ce930c2b7563d861c3093e282903d98a1f0 (patch)
tree70281ef425a2ed938e092317d75cc94d7dffcc64 /t/test-custodian-testfactory.rb
parent0949bf49c317e97c5adc74dd2bf6b83c32181905 (diff)
The argument to our class factories must be a non-nil string.
Diffstat (limited to 't/test-custodian-testfactory.rb')
-rwxr-xr-xt/test-custodian-testfactory.rb17
1 files changed, 17 insertions, 0 deletions
diff --git a/t/test-custodian-testfactory.rb b/t/test-custodian-testfactory.rb
index 65abc5b..b210ef9 100755
--- a/t/test-custodian-testfactory.rb
+++ b/t/test-custodian-testfactory.rb
@@ -23,6 +23,23 @@ class TestTestFactory < Test::Unit::TestCase
#
+ # Test bogus creation
+ #
+ def test_init
+
+ assert_raise ArgumentError do
+ obj = Custodian::TestFactory.create( nil, nil )
+ end
+
+ assert_raise ArgumentError do
+ obj = Custodian::TestFactory.create( Array.new, nil )
+ end
+
+
+ end
+
+
+ #
# Test the FTP-test may be created
#
def test_ftp_uri