From d192a85a60e74a246d0054055af3821f568e4b9f Mon Sep 17 00:00:00 2001 From: Aman Gupta Date: Wed, 15 Jun 2016 17:49:39 -0700 Subject: [PATCH] fix test mock --- test/test_ldap_connection.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test_ldap_connection.rb b/test/test_ldap_connection.rb index 6bb027ac..3acff072 100644 --- a/test/test_ldap_connection.rb +++ b/test/test_ldap_connection.rb @@ -291,7 +291,7 @@ def test_queued_read_setup_encryption_with_start_tls and_return(result2) mock.should_receive(:write) conn = Net::LDAP::Connection.new(:socket => mock) - flexmock(Net::LDAP::Connection).should_receive(:wrap_with_ssl).with(mock, {}). + flexmock(Net::LDAP::Connection).should_receive(:wrap_with_ssl).with(mock, {}, 5). and_return(mock) conn.next_msgid # simulates ongoing query