Has anybody used rspec-puppet to run tests using a function that requires 
external ruby gems?  I'm running unit tests on resources that call 
functions in the puppet_thycotic module however rspec is failing with an 
error as shown below.

Failure/Error: require 'parseconfig'
     
     Puppet::PreformattedError:
       Evaluation Error: Error while evaluating a Function Call, Could not 
autoload puppet/parser/functions/getsecret: cannot load such file -- 
parseconfig at 
/home/username/projects/puppet/modules/example/spec/fixtures/modules/example/manifests/hostname.pp:32:20
 
on node host.example.com

I've installed the parseconfig gem using both the gem and puppet_gem 
providers but rspec still complains that it can't find the file.  Any idea 
how to resolve this?  Is there another directory where rspec looks for gem 
packages?

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/d65a1d78-0f98-43cc-ad6e-2d21196f1ec9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to