diff options
author | Louis-Philippe VĂ©ronneau <pollito@riseup.net> | 2017-10-11 15:52:10 -0400 |
---|---|---|
committer | Louis-Philippe VĂ©ronneau <pollito@riseup.net> | 2017-10-11 15:52:10 -0400 |
commit | 10767a0016b0f46aceab9ac97738390035a112dc (patch) | |
tree | 53db5cf52694e7e4e09b37479c04e04693a4533c /spec/acceptance/apt_spec.rb | |
parent | 5ef29012dccc90e68afc215be9521629a0903bc6 (diff) |
copy CI infra from the shared apt module as-is
Diffstat (limited to 'spec/acceptance/apt_spec.rb')
-rw-r--r-- | spec/acceptance/apt_spec.rb | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/spec/acceptance/apt_spec.rb b/spec/acceptance/apt_spec.rb new file mode 100644 index 0000000..a976a56 --- /dev/null +++ b/spec/acceptance/apt_spec.rb @@ -0,0 +1,21 @@ +require 'spec_helper_acceptance' + +describe 'apt class' do + + context 'default parameters' do + it 'should work idempotently with no errors' do + pp = <<-EOS + class { 'apt': } + EOS + + # Run it twice and test for idempotency + apply_manifest(pp, :catch_failures => true) + apply_manifest(pp, :catch_changes => true) + end + + describe package('apt') do + it { is_expected.to be_installed } + end + + end +end |