Test-driving a rails script/runner script

How to write test cases for rails scripts!.
and if we are expecting user input in command line

This message (including any attachments) contains confidential
intended for a specific individual and purpose, and is protected by law.
If you are not the intended recipient, you should delete this message.
disclosure, copying, or distribution of this message, or the taking of
action based on it, is strictly prohibited.

Please print this if absolutely necessary; Save trees, Save Earth !!

Thanks for the link, I already have gone through the guide but could not
find any relevant information about writing test cases for script/runner
scripts having user interaction!!!

check out Aruba

Or check out ‘expects’ unix construct I think there is a gem. Expects
output and then inputs data

Curtis J Schofield

“Creativity can solve anything”

  • George Lois
    (source: art & copy)