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

http://guides.rubyonrails.org/testing.html
This message (including any attachments) contains confidential
information
intended for a specific individual and purpose, and is protected by law.
If you are not the intended recipient, you should delete this message.
Any
disclosure, copying, or distribution of this message, or the taking of
any
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
BlazingCloud.net

“Creativity can solve anything”

  • George Lois
    (source: art & copy)

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs