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?