Merge pull request #333 from wilman0/master
[puppet-modules/puppetlabs-apt.git] / 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 'class apt fails' do
5     pp = <<-EOS
6       class { 'apt': }
7     EOS
8     expect(apply_manifest(pp, :expect_failures => true).stderr).to match(/This module only works on Debian or derivatives like Ubuntu/i)
9   end
10 end