- apply_manifest(pp, :catch_failures => true) do |r|
- expect(r.stdout).to match(/Notice: User defined with ensure=>present/)
+ class { 'foo':
+ bar => 'baz',
+ }
+
+ if defined_with_params(Class[foo], { 'bar' => 'baz' }) {
+ notify { 'Class foo defined with bar=>baz': }
+ }
+ DOC
+ it 'successfullies checks a class' do
+ apply_manifest(pp2, :catch_failures => true) do |r|
+ expect(r.stdout).to match(%r{Notice: Class foo defined with bar=>baz})