Change IOStub to use files
Reported by Brian Ford | May 7th, 2008 @ 11:28 AM | in 1.0 preview
Instead of having IOStub attempt to duck-type with e.g. #write and #read methods, follow the approach of the #output_to_fd matcher and use a file and IO#reopen to associate an existing IO object (e.g. $stdout or $stdin) with that file. This will require something like IOStub#cleanup to clear files and reset the IO object.
One this is done, make the #output matcher use this method and remove #output_to_fd matcher.
Comments and changes to this ticket
-
Brian Ford August 5th, 2008 @ 02:44 PM
- → Tag changed from to spec task
- → State changed from new to invalid
Please Login or create a free account to add a new comment.
You can update this ticket by sending an email to from your email client. (help)
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
