X-Git-Url: https://review.fuel-infra.org/gitweb?a=blobdiff_plain;f=spec%2Facceptance%2Fapt_spec.rb;h=f6f3d1d827b26950091536ad2ba29209c4dd90c3;hb=33b65b980323dfe1f4ff9733dffca7e1b1ba1986;hp=7fe1d033297ea9061b8ee5569361083785c83838;hpb=16c73c8ab4786a485cce0faaf2085100b77ec870;p=puppet-modules%2Fpuppetlabs-apt.git diff --git a/spec/acceptance/apt_spec.rb b/spec/acceptance/apt_spec.rb index 7fe1d03..f6f3d1d 100644 --- a/spec/acceptance/apt_spec.rb +++ b/spec/acceptance/apt_spec.rb @@ -23,6 +23,7 @@ everything_everything_pp = <<-MANIFEST 'sources.list.d' => true, 'preferences' => true, 'preferences.d' => true, + 'apt.conf.d' => true, }, sources => $sources, } @@ -31,7 +32,7 @@ everything_everything_pp = <<-MANIFEST describe 'apt class' do context 'with reset' do it 'fixes the sources.list' do - shell('cp /etc/apt/sources.list /tmp') + run_shell('cp /etc/apt/sources.list /tmp') end end @@ -43,14 +44,14 @@ describe 'apt class' do end end it 'stills work' do - shell('apt-get update') - shell('apt-get -y --force-yes upgrade') + run_shell('apt-get update') + run_shell('apt-get -y --force-yes upgrade') end end context 'with reset' do it 'fixes the sources.list' do - shell('cp /tmp/sources.list /etc/apt') + run_shell('cp /tmp/sources.list /etc/apt') end end end