This help site has been deprecated. Please send your requests to

Document How-To for Gem::TestCase

Daniel P. Clark's Avatar

Daniel P. Clark

19 Feb, 2017 07:22 PM

I find myself in a situation where an extension I'm building with my gem will compile only on some operating systems. So now I need to write into the test suite a test that will build the current gem and prove that a bundle install will build the extension. I've been reading Rubygems, Bundler and RVM code for months now and really need help (preferably documentation) on testing a gem in a pure and separate environment.

Can we get documentation on using Gem::TestCase for external projects including verifying the results?

Thank you,
-Daniel (@6ftdan)

  1. Support Staff 1 Posted by Eric Hodel on 20 Feb, 2017 05:03 AM

    Eric Hodel's Avatar

    While documentation is nice, I don't think it is necessary for your purposes.

    You can use Gem::Package::build to package the gem and Gem::Installer::at to install the package you've built.

Discussions are closed to public comments.
If you need help with please start a new discussion.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac