Merge pull request #191 from mnencia/patch-1
[puppet-modules/puppetlabs-apt.git] / spec / system / class_spec.rb
1 require 'spec_helper_system'
2
3 describe 'apt class' 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       puppet_apply(pp) do |r|
14         r.exit_code.should_not == 1
15         r.refresh
16         r.exit_code.should be_zero
17       end
18     end
19   end
20 end