Re: [Puppet Users] rspec and overriding :facts per context

2013-10-08 Thread Johan De Wit
Hi Dan, Thx for the tip ! Just what i was looking for. I will delve into the spec files here, i can learn a lot of them grts jo On 10/08/2013 01:25 AM, Dan Bode wrote: I do this with params.merge! in a before block: here is an example: https://github.com/stackforge/puppet-openstack/blob/m

Re: [Puppet Users] rspec and overriding :facts per context

2013-10-07 Thread Dan Bode
I do this with params.merge! in a before block: here is an example: https://github.com/stackforge/puppet-openstack/blob/master/spec/classes/openstack_cinder_all_spec.rb#L61 On Mon, Oct 7, 2013 at 6:26 AM, Johan De Wit wrote: > Hi, > > I'm looking for a way to avoid repeating all necessary fa

[Puppet Users] rspec and overriding :facts per context

2013-10-07 Thread Johan De Wit
Hi, I'm looking for a way to avoid repeating all necessary facts to make the catalog compile. I'm using the let function for passing needed facts: Now I have to repeat all facts in every context to make it work. Is there a way to do something like : describe 'x' do let(:facts) {{ :x =>