test/dbi/tc_dbi.rb in dbi-0.4.3 vs test/dbi/tc_dbi.rb in dbi-0.4.4

- old
+ new

@@ -136,11 +136,11 @@ end def test_connect assert_respond_to(DBI, :connect) end - + def test_available_drivers assert_respond_to(DBI, :available_drivers) assert_equal( [ "dbi:Mysql:", @@ -165,10 +165,10 @@ assert_raises(DBI::InterfaceError){ DBI.send(:parse_url, 'dbi') } assert_raises(DBI::InterfaceError){ DBI.send(:parse_url, 'dbi::foo') } # XXX we're looking for a specific exception message here assert_nothing_raised do - begin + begin DBI.send(:parse_url, 'dbi:blah') rescue DBI::InterfaceError => e assert true assert_kind_of DBI::InterfaceError, e assert_equal "Invalid Data Source Name", e.message