Forum: RSpec STDOUT.should_receive(:puts).with Works *** (:print) fails

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
0a8794b6ee64660e2d542488c6db85df?d=identicon&s=25 Charles T. (godfather667)
on 2013-05-11 05:36
I use:  STDOUT.should_receive(:puts).with...... many times in RSPEC

 However, I have a couple of "do you want(Y/N)?" where I use 'print'

and apparently  ..(:print).with... does not work.  I can change 'print'
to 'puts' and it works perfectly.

How do I test :print and ...getch("y") for input???

Any help would be appreciated!!

 Chuck T.

This topic is locked and can not be replied to.