Vamsee
Are you able to share how you went about mocking out the ::params class
include?
As I've got the same pattern that I want to test using rspec-puppet...
Cheers
Gavin
On Friday, 27 December 2013 10:16:49 UTC, Vamsee Kanakala wrote:
>
> On Dec 26 10:56, Johan De Wit wrote:
> > I use this one to set parameters for a define in my rspec
> >
> > let(:facts) { { :hostname => 'sambaserver' } }
> >
> > context 'default setting' do
> > let(:params) { { :share_path => '/testpath/share' } }
> > ...
> > end
> >
>
> Thanks a bunch Johan, that gave me some ideas. I was able to rewrite
> my tests successfully based on your pattern.
>
>
> Vamsee.
>
--
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/b0d4f0e8-67c3-4e87-923f-da7f9d44df68%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.