You don’t have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the ‘view member email addresses’ permission to view the original message
to puppet...@googlegroups.com
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.
Gavin Williams
unread,
16 Jan 2014, 07:58:3716/01/2014
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You don’t have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the ‘view member email addresses’ permission to view the original message
to puppet...@googlegroups.com
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
Vamsee Kanakala
unread,
16 Jan 2014, 09:46:3716/01/2014
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You don’t have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the ‘view member email addresses’ permission to view the original message
to puppet...@googlegroups.com
On Jan 16 04:58, Gavin Williams wrote:
> 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...
>
Hi Gavin,
I ended up adding all the params to the define explicity, instead of
including the params class:
Hope this helps. I thought this was much cleaner in its contract rather than including
the params class. This might or might not appeal to you, though.