Closed richardplatel closed 10 months ago
@pirj Could use some help here figuring out how to write this test.
Seems like making a real TCPSocket is not ideal but I'm not sure how to mock it in a way that still tests the change.
Or maybe there another approach?
Thanks for spotting this, I've merged your commit with an updated spec. (0ff6358ef15ded1eb67e4796f94f5be95dcf00e7)
This has been released in 3.12.3, sorry about the delay
RSpec::Core::OutputWrapper uses
send
to call class methods onIO
objects, but someIO
objects (e.g.TCPSocket
) redefinesend
. Use the equivalent__send__
method instead.https://apidock.com/ruby/BasicObject/__send__