require "selenium-webdriver"
gem "test-unit"
require "test/unit"
class GiftcardCheckout < Test::Unit::TestCase
def test_giftcard_checkout
puts ARGV.length
end
I am invoking above ruby program running on Windows 7 using ruby giftcard_checkout.rb local
from command line. The problem here is that ARGV.length is always 0 - basically the arguments are not being passed to ruby interpreter. Did go through many similar post,set the associations & file type - but did not work.
assoc .rb returns .rb=rbFile
ftype rbFile returns "C:\Ruby193\bin\ruby.exe" "%1" %*
Could this be something to do with Test Unit?