Skip to content

Conversation

raszi
Copy link
Contributor

@raszi raszi commented Jul 12, 2016

No description provided.

}
TCR.use_cassette("spec/fixtures/starwars_telnet") do
sock = TCPSocket.open("towel.blinkenlights.nl", 23)
expect(sock.read.length).to_not be_zero
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well, the stubbing of the IO#read method is not entirely correct because a different IO#read with different arguments could return a wrong chunk.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But at least I did not introduce a new issue :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant