Gem::TestCase

RubyGemTestCase provides a variety of methods for testing rubygems and
gem-related behavior in a sandbox. Through RubyGemTestCase you can install
and uninstall gems, fetch remote gems through a stub fetcher and be assured
your normal set of gems is not affected.

Tests are always run at a safe level of 1.

Public Class Methods

cert_path(cert_name)click to toggle source

Returns the path to the certificate named cert_name from
test/rubygems/.

Returns the make command for the current platform. For versions of Ruby
built on MS Windows with VC++ or Borland it will return ‘nmake’. On all
other platforms, including Cygwin, it will return ‘make’.

Returns the make command for the current platform. For versions of Ruby
built on MS Windows with VC++ or Borland it will return ‘nmake’. On all
other platforms, including Cygwin, it will return ‘make’.

Creates a Gem::Specification with a
minimum of extra work. name and version are the
gem’s name and version, platform, author, email, homepage, summary and
description are defaulted. The specification is yielded for customization.

Creates a gem with name, version and
deps. The specification will be yielded before gem creation
for customization. The gem will be placed in File.join @tempdir,
'gems'. The specification and .gem file location are returned.