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

690bd010955ce98963fe7cfdd8837161?d=identicon&s=25 Charles Thornton (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.

 EMAIL:   admin@hawthorne-press.com
This topic is locked and can not be replied to.