[chef-dev] rbenv and minitest-chef-handler, any caveats?


Chronological Thread 
  • From: Andrea Campi < >
  • To: Chef Dev < >
  • Subject: [chef-dev] rbenv and minitest-chef-handler, any caveats?
  • Date: Sat, 10 Nov 2012 16:38:59 +0100

Hi,

I'm adding test-kitchen tests to some of my cookbooks, and I'm having trouble with one that uses rbenv to install a specific version of ruby.

Specifically, my node converges normally, but when the times comes to run minitest-chef-handler, I get an error:

[Sat, 10 Nov 2012 15:30:52 +0000] INFO: Running report handlers
[Sat, 10 Nov 2012 15:30:52 +0000] ERROR: Report handler MiniTest::Chef::Handler raised #<Gem::LoadError: Could not find highline (>= 1.6.9) amongst [daemons-1.1.9, eventmachine-0.12.10, json_pure-1.7.5, minitest-1.6.0, nats-0.4.28, rack-1.4.1, rake-0.8.7, rdoc-2.5.8, thin-1.5.0]>

Looking at the VM, it seems that minitest-chef-handler and its dependencies have been installed with the Omnibus rubygem, but then report handlers are being run within the new rbenv environment.

Did anybody see this problem, and if so how did you solve it?

Andrea



Archive powered by MHonArc 2.6.16.

§