test/functional/connection_test.rb in vertica-0.9.0.beta7 vs test/functional/connection_test.rb in vertica-0.9.0.beta8

- old
+ new

@@ -60,16 +60,21 @@ assert_equal({}, @connection.parameters) assert_nil @connection.backend_pid assert_nil @connection.backend_key assert_nil @connection.transaction_status end + + def test_interrupt_connection + @connection = Vertica::Connection.new(TEST_CONNECTION_HASH.merge(:interruptable => true)) + assert @connection.interruptable? + end def test_new_with_error_response assert_raises Vertica::Error::ConnectionError do Vertica::Connection.new(TEST_CONNECTION_HASH.merge('database' => 'nonexistant_db')) end end - + def test_connection_inspect_should_not_print_password @connection = Vertica::Connection.new(TEST_CONNECTION_HASH) inspected_string = @connection.inspect assert_no_match /:password=>#{TEST_CONNECTION_HASH[:password]}/, inspected_string end