2014-02-24 22:52:13 +01:00
|
|
|
require 'spec_helper_acceptance'
|
|
|
|
|
|
|
|
describe 'unsupported distributions and OSes', :if => UNSUPPORTED_PLATFORMS.include?(fact('osfamily')) do
|
|
|
|
it 'class apt fails' do
|
|
|
|
pp = <<-EOS
|
|
|
|
class { 'apt': }
|
|
|
|
EOS
|
2014-03-07 16:03:44 +01:00
|
|
|
expect(apply_manifest(pp, :expect_failures => true).stderr).to match(/This module only works on Debian or derivatives like Ubuntu/i)
|
2014-02-24 22:52:13 +01:00
|
|
|
end
|
|
|
|
end
|