Add non Debian os family unsupported test.
[puppet-modules/puppetlabs-apt.git] / spec / acceptance / class_spec.rb
1 require 'spec_helper_acceptance'
2
3 describe 'apt class', :unless => UNSUPPORTED_PLATFORMS.include?(fact('osfamily')) do
4
5   context 'default parameters' do
6     # Using puppet_apply as a helper
7     it 'should work with no errors' do
8       pp = <<-EOS
9       class { 'apt': }
10       EOS
11
12       # Run it twice and test for idempotency
13       apply_manifest(pp, :catch_failures => true)
14       apply_manifest(pp, :catch_failures => true)
15     end
16   end
17 end