Test-driving a rails script/runner script

29 views
Skip to first unread message

mohitnegi

unread,
Nov 17, 2011, 5:36:36 AM11/17/11
to rubyonra...@googlegroups.com
How to write test cases for rails scripts!.
and if we are expecting user input in command line

Amit Acharya

unread,
Nov 17, 2011, 7:26:00 AM11/17/11
to rubyonra...@googlegroups.com
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 !!



On Thu, Nov 17, 2011 at 4:06 PM, mohitnegi <mohit...@gmail.com> wrote:
How to write test cases for rails scripts!.
and if we are expecting user input in command line

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/82k4D_mtliMJ.
To post to this group, send email to rubyonra...@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-ta...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

mohitnegi

unread,
Nov 17, 2011, 8:14:05 AM11/17/11
to rubyonra...@googlegroups.com
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!!!

Curtis Schofield

unread,
Nov 17, 2011, 11:19:24 AM11/17/11
to rubyonra...@googlegroups.com
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)

On Nov 17, 2011, at 5:14 AM, mohitnegi <mohit...@gmail.com> wrote:

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!!!

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/fpCUcTb6cOQJ.
Reply all
Reply to author
Forward
0 new messages