1 require 'spec_helper_acceptance'
3 describe 'validation, concat validate_cmd parameter', if: ['debian', 'redhat', 'ubuntu'].include?(os[:family]) do
5 @basedir = setup_test_directory
8 context 'with "/usr/bin/test -e %"' do
11 concat { '#{@basedir}/file':
12 validate_cmd => '/usr/bin/test -e %',
14 concat::fragment { 'content':
15 target => '#{@basedir}/file',
21 it 'applies the manifest twice with no stderr' do
23 expect(file("#{@basedir}/file")).to be_file
24 expect(file("#{@basedir}/file").content).to contain 'content'