1 #! /usr/bin/env ruby -S rspec
2 require 'spec_helper_acceptance'
4 describe 'defined_with_params function' do
6 it 'should successfully notify' do
12 if defined_with_params(User[dan], {'ensure' => 'present' }) {
13 notify { 'User defined with ensure=>present': }
17 apply_manifest(pp, :catch_failures => true) do |r|
18 expect(r.stdout).to match(/Notice: User defined with ensure=>present/)