lib/rubygems/test_case.rb
##
# Builds and installs the Gem::Specification +spec+ into the user dir
Builds and installs the Gem::Specification +spec+ into the user dir
Builds and installs the Gem :: Specification + spec + into the user dir
def install_gem_user spec
    require 'rubygems/installer'
    use_ui Gem::MockGemUi.new do
      Dir.chdir @tempdir do
        Gem::Package.build spec
      end
    end
    gem = File.join(@tempdir, File.basename(spec.cache_file)).untaint
    i = Gem::Installer.new(gem, :wrappers => true, :user_install => true)
    i.install
    i.spec
  end
def install_gem_user spec require 'rubygems/installer' use_ui Gem :: MockGemUi . new do Dir . chdir @tempdir do Gem :: Package . build spec end end gem = File . join ( @tempdir , File . basename ( spec . cache_file ) ) . untaint i = Gem :: Installer . new ( gem , :wrappers => true , :user_install => true ) i . install i . spec end
Builds and installs the Gem::Specification +spec+ into the user dir
Builds and installs the Gem :: Specification + spec + into the user dir
spec