# File lib/rubygems/commands/test_command.rb, line 35 def initialize(spec=nil, on_install=false, gem_dir=nil) options = { } if spec options[:name] = spec.name options[:version] = spec.version end @spec = spec @gem_dir = gem_dir @on_install = on_install super 'test', description, options add_version_option add_option( '--force', 'ignore opt-in testing and just run the tests' ) do |v,o| o[:force] = true end add_option( '--dep-user-install', 'force installing the dependencies into the user path' ) do |v,o| o[:dep_user_install] = true end end