Dear all, Anyone know how to pass command-line parameter to Rspec script?
For example: I want to run the test.rb script. Suppose there is a parameter that is set in test.rb script is sleep. For the convenience,I want to set the parameter for sleep in the command-line. If type : $ spec test.rb --sleep 10 The script will sleep 10 seconds. If type $ spec test.rb --sleep 5 The script will sleep 5 seconds. Anyone can describe the detail how to do that? Thanks in advance! _______________________________________________ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users