describe do
it do
begin
old_argv_value = ARGV
= [ , ]
opts = GetoptLong.new([, GetoptLong::REQUIRED_ARGUMENT])
opts.terminated?.should == false
opts.get.should == [, ]
opts.terminated?.should == false
opts.get.should == nil
opts.terminated?.should == true
ensure
= old_argv_value
end
end
end