method

setup

Importance_0
setup() public

No documentation

This method has no description. You can help the Ruby community by adding new notes.

Hide source
# File lib/rubygems/installer_test_case.rb, line 57
  def setup
    super

    @installer_tmp = File.join @tempdir, 'installer'
    FileUtils.mkdir_p @installer_tmp

    Gem.use_paths @installer_tmp
    Gem.ensure_gem_subdirectories @installer_tmp

    @spec = quick_gem 'a'
    util_make_exec @spec
    util_build_gem @spec
    @gem = @spec.cache_file

    @user_spec = quick_gem 'b'
    util_make_exec @user_spec
    util_build_gem @user_spec
    @user_gem = @user_spec.cache_file

    Gem.use_paths @gemhome

    @installer      = util_installer @spec, @gemhome
    @user_installer = util_installer @user_spec, Gem.user_dir, :user

    Gem.use_paths @gemhome
  end
Register or log in to add new notes.