I have been running Rspec tests and want to print out STDOUT. It seems like a very simple problem yet I see very little documentation about this issue and I have been unable to figure out how to print it. I know as a variable you can do $stdout but whenever I print it (using pp, puts, or print), I cannot get the actual value of stdout.
I attached an image of one of my tests with a few of my different attempts (commented out at the moment).
Thanks for your help!
To view this discussion on the web visit https://groups.google.com/d/msgid/rspec/f2b776fa-011b-4ddb-ba37-0be4025d3e85%40googlegroups.com.--
You received this message because you are subscribed to the Google Groups "rspec" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rspec+un...@googlegroups.com.
To post to this group, send email to rs...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rspec/CADUxQmsBOPyW82dCu6Q9734qFjYAHh3Bn%3DA55yaBMxi2%3DALMjw%40mail.gmail.com.