1 require 'spec_helper_acceptance'
3 describe 'dirname function' do
5 context 'with absolute path' do
7 $a = '/path/to/a/file.txt'
11 notify { 'output correct': }
14 it 'returns the dirname' do
15 apply_manifest(pp1, :catch_failures => true) do |r|
16 expect(r.stdout).to match(%r{Notice: output correct})
20 context 'with relative path' do
22 $a = 'path/to/a/file.txt'
26 notify { 'output correct': }
29 it 'returns the dirname' do
30 apply_manifest(pp2, :catch_failures => true) do |r|
31 expect(r.stdout).to match(%r{Notice: output correct})
37 it 'handles improper argument counts'