Helpful info for debugging rspec-puppet

Posted by : on

Category : knowledge


So I found this awesome piece of information about debugging rspec-puppet, and particularly this block of code:<br></br>File.write(<br></br>'myclass.json',<br></br>PSON.pretty_generate(catalogue)<br></br>)<br></br>

This is INCREDIBLY useful for debugging.

In fact, I found, by using this, that when testing defined type parameters, they are all lowercased. Even when the parameters SHOULD have camel-casing etc…

Be aware, this annoyed the heck out of me and my team.


About Josh Souza
Josh Souza

A technologist and roller skater.

Email : development@codethat.rocks

Website : https://www.codethat.rocks

Categories
Useful Links