Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: better stubbing #16

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

fix: better stubbing #16

wants to merge 4 commits into from

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