Hi, You need to include the puppet logging in you rspec file.
I can't remember what that is off the top of my head but I'm pretty sure this will help you along the way. http://www.ruempler.eu/2012/04/03/puppet-rspec-debugging/?mobile=1 > On 8 May 2014, at 0:42, choffee <[email protected]> wrote: > > Am I doing this wrong? > > I create a test that says "check for a file named foo", write some code that > should create the file. It fails for whatever reason and the test just says > no. > > How do I get a clue what I am doing wrong? It seems obvious to me that having > the catalog that was tested against for that test would mean I could see my > error rather than having to guess and test again. > > john > >> On Wednesday, 7 May 2014 13:38:22 UTC+1, choffee wrote: >> I am trying to debug why my test is failing and not producing a file that I >> thought it should be. >> >> Is there a simple way to view the catalogue that rspec is testing against? >> >> I tried --debug in the .rspec file with the debugger gem and it gives no >> extra errors is there something more I need to add to my test to turn it on? >> >> Thanks >> >> john > > -- > 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 [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/puppet-users/e743953c-6175-4193-a620-1456d84ac84d%40googlegroups.com. > For more options, visit https://groups.google.com/d/optout. -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/DAFB2E08-C94A-46A4-83B2-5E4F049D6E42%40gmail.com. For more options, visit https://groups.google.com/d/optout.
