Hi, so you installed puppet_spec_helper as a gem. This should work, and I'm not certain what the clean approach of making it work in this scenario would be. I believe "require 'rubygems'" might help, but I half remember some issues that can crop up with this.
Personally, I would create a Gemfile, add puppetlabs_spec_helper to it and run rake through bundler. That should definitely work. HTH, Felix On 07/20/2015 03:39 PM, Peter Berghold wrote: > Hi folks, > > I've bravely stepped out into the world of writing tests for my Puppet > modules to ensure code quality. Have run into an issue. My > spec/spec_helper.rb has one line. > > require 'puppetlabs_spec_helper/module_spec_helper' > > I run "rake spec" and this happens: > > spec/spec_helper.rb:1:in `require': no such file to load -- > puppetlabs_spec_helper/module_spec_helper (LoadError) > from /home/pb869e/src/pb869e-attbind/spec/spec_helper.rb:1 > -- and more--- > > I did a " find /usr -name module_spec_helper.rb " and it shows up here: > /usr/lib/ruby/gems/1.8/gems/puppetlabs_spec_helper-0.10.3/lib/puppetlabs_spec_helper/module_spec_helper.rb > > so why isn't it loading? > > thoughts? -- 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/55AD7C65.8020600%40Alumni.TU-Berlin.de. For more options, visit https://groups.google.com/d/optout.