I am not sure with which version of rspec-puppet the break first occurs but the 1.0.1 does not work (unit tests), 0.1.6 does work.
gem 'rspec-puppet', '~> 1.0.1'
gem 'rspec-puppet', '~> 0.1.6'
The error
Error: Error from DataBinding 'hiera' while looking up 'first parameter ' : no implicit conversion of Hash into String on node XXXXXX
It does not matter if the parameter is using hiera or not, you can even take out all mention of hiera and you will still get the error as long as long as spec_helper.rb contains require 'rspec-hiera-puppet'.
Googling this error it seems this is one of those errors that gives you bad info and misdirects, it has nothing to do with hash but a badly formed hiera file.... at least in the context of getting this on a normal puppet apply and not a unit test.
I am not sure with which version of rspec-puppet the break first occurs but the 1.0.1 does not work (unit tests), 0.1.6 does work.
The error
Error: Error from DataBinding 'hiera' while looking up 'first parameter ' : no implicit conversion of Hash into String on node XXXXXX
It does not matter if the parameter is using hiera or not, you can even take out all mention of hiera and you will still get the error as long as long as spec_helper.rb contains require 'rspec-hiera-puppet'.
Googling this error it seems this is one of those errors that gives you bad info and misdirects, it has nothing to do with hash but a badly formed hiera file.... at least in the context of getting this on a normal puppet apply and not a unit test.