Closed JohnLyman closed 8 years ago
Thanks for reporting along with a test case. Are you using RVM or anything?
What version of ruby are you using? I just tested this on ruby 2.0 with no issues.
I'm using the ruby bundled with PE 3.3.2.
$ /opt/puppet/bin/ruby --version
ruby 1.9.3p484 (2013-11-22 revision 43786) [x86_64-linux]
I'm not using RVM, but I do have $GEM_HOME
set to ~/.gem/ruby/1.9.3
This is a ruby 1.9.3 issue as I was able to reproduce the issue. As a work around please use ruby 2.0+
So this is actually a problem in one of the newer templates where the template uses a to_h function that does not exist in ruby 1.9.3. 0.11.0 works because retrospec-puppet doesn't process the problem template.
Should be a easy fix to the offending template without a retrospec update.
Fixed in latest templates.
With version 0.12, retrospec is not creating
spec/classes
. I downgraded to 0.11 and it generatesspec/classes/retro_test_spec.rb
as expected.