# File lib/rubygems/commands/test_command.rb, line 75 def find_gem(name, version) spec = Gem.source_index.find_name(name, version).last unless spec and (spec.installation_path rescue nil) alert_error "Could not find gem #{name} (#{version})" raise Gem::GemNotFoundException, "Could not find gem #{name}, (#{version})" end return spec end