module-concat/spec/acceptance/unsupported_spec.rb
2014-02-28 08:39:09 -08:00

18 lines
538 B
Ruby

require 'spec_helper_acceptance'
describe 'unsupported distributions and OSes', :if => UNSUPPORTED_PLATFORMS.include?(fact('osfamily')) do
basedir = default.tmpdir('concat')
it 'should fail' do
pp = <<-EOS
include concat::setup
concat { '#{basedir}/file':
backup => 'puppet',
}
concat::fragment { 'new file':
target => '#{basedir}/file',
content => 'new contents',
}
EOS
expect(apply_manifest(pp, :expect_failures => true).stderr).to match(/unsupported/i)
end
end