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.

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? 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