1 require 'spec_helper_acceptance'
3 describe 'ensure_resource function' do
6 notify { "test": loglevel => 'err' }
7 ensure_resource('notify', 'test', { 'loglevel' => 'err' })
9 it 'ensures a resource already declared' do
12 apply_manifest(pp1, :expect_changes => true)
16 ensure_resource('notify', 'test', { 'loglevel' => 'err' })
18 it 'ensures a undeclared resource' do
21 apply_manifest(pp2, :expect_changes => true)
23 it 'takes defaults arguments'
26 it 'handles no arguments'
27 it 'handles non strings'