Closed michaelklishin closed 10 years ago
@tcp_socket = mock(:tcp_socket, :close => nil, :puts => nil, :write => nil, :setsockopt => nil, :flush => true) TCPSocket.stub!(:open).and_return @tcp_socket
gives a nice illusion of having tests. But no, for a messaging protocol client library that's not testing.
The real tests are run by:
rake test
If you want to enhance the spec testing, feel free. Give me a PR when you have something constructive.
gives a nice illusion of having tests. But no, for a messaging protocol client library that's not testing.