Anyone know how to pass command-line parameter to Rspec script?
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!