zulip/puppet/apt/spec/system/class_spec.rb

21 lines
410 B
Ruby

require 'spec_helper_system'
describe 'apt class' do
context 'default parameters' do
# Using puppet_apply as a helper
it 'should work with no errors' do
pp = <<-EOS
class { 'apt': }
EOS
# Run it twice and test for idempotency
puppet_apply(pp) do |r|
r.exit_code.should_not == 1
r.refresh
r.exit_code.should be_zero
end
end
end
end