Thanks, I'll try that.
- Johnson

On Monday, July 20, 2015 at 1:30:14 PM UTC-7, Hunter Haugen wrote:
>
> There is no helper built in to rspec-puppet to do this, but you can do it 
> by using an rspec expect() around a catalogue.resources check:
>
> it "has no file resources with ensure => directory" do
>   expect(catalogue.resources.select { |r| r.type == "File" && r[:ensure] 
> == "directory" }).to be_empty
> end
>

-- 
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/31de11a8-c3e1-4f4e-beb5-f230b6d605fc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to