From: dblack@... Date: 2006-09-05T08:34:45+09:00 Subject: Re: run only one test case? Hi -- On Tue, 5 Sep 2006, Phlip wrote: > Paul Lutus wrote: > >> My reply shows how to fetch ARGV, and if there's a test case specified, >> use >> that instead of a predefined name. > > Your code: > > #! /usr/bin/ruby > > def exec(s) > puts "Exec #{s}" > end > > if ARGV.size > 0 > exec(ARGV.first) > else > exec("something else") > end > > I don't see it applying s to the test cases. It just prints out the name, > and I can't believe you actually think this answers my question. Maybe you > need to read more carefully. Please don't attack and denounce people like this on this list. If someone misunderstands something you've asked, either try to explain it, or ignore the response and move on. The rhetoric of disbelief is out of place. He's trying to help you. David -- David A. Black | dblack@wobblini.net Author of "Ruby for Rails" [1] | Ruby/Rails training & consultancy [3] DABlog (DAB's Weblog) [2] | Co-director, Ruby Central, Inc. [4] [1] http://www.manning.com/black | [3] http://www.rubypowerandlight.com [2] http://dablog.rubypal.com | [4] http://www.rubycentral.org