From c8c062ff91a5ab89395b32138ab78dd31d137eb6 Mon Sep 17 00:00:00 2001 From: Steve Kemp Date: Tue, 17 Feb 2015 20:50:38 +0000 Subject: Updated for new test-type API. Now that the class-factory returns an Array, we've updated the test-cases to continue to pass. --- t/test-ldap-probe.rb | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 't/test-ldap-probe.rb') diff --git a/t/test-ldap-probe.rb b/t/test-ldap-probe.rb index 4e552b4..9d6b6f0 100755 --- a/t/test-ldap-probe.rb +++ b/t/test-ldap-probe.rb @@ -32,8 +32,9 @@ class TestLDAPProbe < Test::Unit::TestCase test = Custodian::TestFactory.create( "auth.bytemark.co.uk must run ldap on 389 with username 'testing' with password 'bob' otherwise 'LDAP dead?'." ) end - assert( test ) - assert_equal( test.get_type, "ldap" ) + assert( test.kind_of? Array ) + assert( ! test.empty? ) + assert_equal( test[0].get_type, "ldap" ) end @@ -57,6 +58,10 @@ class TestLDAPProbe < Test::Unit::TestCase data.each do |str| assert_raise ArgumentError do test = Custodian::TestFactory.create( str ) + + assert( test.kind_of? Array ) + assert( ! test.empty? ) + end end end -- cgit v1.2.1