method

install_gem

ruby latest stable - Class: Gem::TestCase
install_gem(spec, options = {})
public

Builds and installs the Gem::Specification spec