085845dbfc02508ba3ea96a6fd793c5a0f23a2d9
[mirror/dsa-puppet.git] / 3rdparty / modules / apache / spec / acceptance / unsupported_spec.rb
1 require 'spec_helper_acceptance'
2
3 describe 'unsupported distributions and OSes', :if => UNSUPPORTED_PLATFORMS.include?(fact('osfamily')) do
4   it 'should fail' do
5     pp = <<-EOS
6       class { 'apache': }
7       apache::vhost { 'test.lan':
8         docroot => '/var/www',
9       }
10     EOS
11     expect(apply_manifest(pp, :expect_failures => true).stderr).to match(/unsupported/i)
12   end
13 end