App Ra wrote:

> Hello,
> I'm using Runit to write unit test for a class that takes command line
> parameters.
> 
> How do I pass commandline parameters from Runit class to my actual class
> that it's testing?

By typing the Ruby script name and then the arguments. Perhaps a bit more
detail on your problem would help us help you. Do you want to know how to
create the command-line arguments, or how to read them?

-----------------------------------------

#!/usr/bin/ruby -w

n = 0

ARGV.each do |arg|
   puts "Argument #{n}: #{arg}"
   n += 1
end

-----------------------------------------

$ (ruby script name) This is a test.

Output:

Argument 0: This
Argument 1: is
Argument 2: a
Argument 3: test.

-- 
Paul Lutus
http://www.arachnoid.com