Skip to content

Commit b807113

Browse files
author
Jerry Cheung
committed
missed a spot
1 parent 4f29d7d commit b807113

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/test_ldap_connection.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,9 @@ def test_write_with_controls
5858
end
5959

6060
def test_write_increments_msgid
61-
mock = Minitest::Mock.new
62-
mock.expect(:write, true, [[1.to_ber, "request1"].to_ber_sequence])
63-
mock.expect(:write, true, [[2.to_ber, "request2"].to_ber_sequence])
61+
mock = flexmock("socket")
62+
mock.should_receive(:write).with([1.to_ber, "request1"].to_ber_sequence).and_return(true)
63+
mock.should_receive(:write).with([2.to_ber, "request2"].to_ber_sequence).and_return(true)
6464
conn = Net::LDAP::Connection.new(:socket => mock)
6565
conn.send(:write, "request1")
6666
conn.send(:write, "request2")

0 commit comments

Comments
 (0)