Re: [Puppet-dev] Re: rspec-puppet and local variable values

2015-03-27 Thread Corey Osman
I didn't even realize this thread was old. Oops. I saw it come across email but I guess its how my email reader works. On Friday, March 27, 2015 at 12:00:22 PM UTC-7, Trevor Vaughan wrote: > > Wow, thread resurrection! > > I figured out how to solve my problem but thanks for the pointers to the

Re: [Puppet-dev] Re: rspec-puppet and local variable values

2015-03-27 Thread Trevor Vaughan
Wow, thread resurrection! I figured out how to solve my problem but thanks for the pointers to the additional tools, quite useful. I also ended up dumping variables either through Pry or through a function. The issue that I was having is that I have some functions that modify items on the filesy

[Puppet-dev] Re: rspec-puppet and local variable values

2015-03-27 Thread Corey Osman
Coming from regular language testing your first thought with puppet is how do I control the flow of code when testing. In normal languages you can mock the functions, getters, setters and possibly instance variables. With puppet its a bit different. You can control the flow of puppet code onl