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