class Gem::TestCase

def uninstall_gem spec

Uninstalls the Gem::Specification +spec+
#
def uninstall_gem spec
  require 'rubygems/uninstaller'
  Class.new(Gem::Uninstaller) {
    def ask_if_ok spec
      true
    end
  }.new(spec.name, :executables => true, :user_install => true).uninstall
end