search for: 6166afb77000

Displaying 1 result from an estimated 1 matches for "6166afb77000".

2011 Sep 08
2
rspec and testing IO
I have a class that expects some input via ''gets''. I found that, when testing, I can do something as simple as this: @foo.stub!(:gets) { "stuff\n" } However that only works in the most simple case. In my case the class asks a series of questions that require a yes/no answer culminating in some end state. The class then asks if the user would like to go through the