module-concat/spec/acceptance/unsupported_spec.rb

19 lines
538 B
Ruby
Raw Normal View History

2014-02-28 02:13:03 +01:00
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