diff options
author | Steve Kemp <steve@steve.org.uk> | 2012-11-23 21:19:44 +0000 |
---|---|---|
committer | Steve Kemp <steve@steve.org.uk> | 2012-11-23 21:19:44 +0000 |
commit | 3cfcef12356b98d1316ee8d3982ff581cac65be2 (patch) | |
tree | c217f612edacf6af9e07b98c785808ff6894de91 /t/test-custodian-testfactory.rb | |
parent | 4c4829747aa5ac151c6484e9192cd81da5ed7b8b (diff) |
More DNS-tests.
Diffstat (limited to 't/test-custodian-testfactory.rb')
-rwxr-xr-x | t/test-custodian-testfactory.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/t/test-custodian-testfactory.rb b/t/test-custodian-testfactory.rb index 2e4f5b9..b016289 100755 --- a/t/test-custodian-testfactory.rb +++ b/t/test-custodian-testfactory.rb @@ -143,6 +143,19 @@ class TestTestFactory < Test::Unit::TestCase Custodian::TestFactory.create( "a.ns.bytemark.co.uk must run dns for bytemark.co.uk as '80.68.80.26;85.17.170.78;80.68.80.27'." ) end + # + # Missing target + # + assert_raise ArgumentError do + assert( Custodian::TestFactory.create( "a.ns.bytemark.co.uk must run dns resolving NS as '80.68.80.26;85.17.170.78;80.68.80.27'." ) ) + end + + # + # Missing expected results + # + assert_raise ArgumentError do + assert( Custodian::TestFactory.create( "a.ns.bytemark.co.uk must run dns for www.bytemark.co.uk resolving NS " ) ) + end end |