From: Morgan Haskel Date: Thu, 29 May 2014 17:07:38 +0000 (-0400) Subject: Merge pull request #303 from apenney/fix-ubuntu-10-tests X-Git-Tag: 1.5.0~2 X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=199bd52cf373bfc55f1b31f8721931777472b6c0;p=puppet-modules%2Fpuppetlabs-apt.git Merge pull request #303 from apenney/fix-ubuntu-10-tests Fix the tests for Ubuntu 10.04. --- diff --git a/spec/acceptance/apt_key_provider_spec.rb b/spec/acceptance/apt_key_provider_spec.rb index 9becd25..0a31495 100644 --- a/spec/acceptance/apt_key_provider_spec.rb +++ b/spec/acceptance/apt_key_provider_spec.rb @@ -203,7 +203,7 @@ ugVIB2pi+8u84f+an4Hml4xlyijgYu05pqNvnLRyJDLd61hviLC8GYU= EOS apply_manifest(pp, :expect_failures => true) do |r| - expect(r.stderr).to match(/Host not found/) + expect(r.stderr).to match(/(Host not found|Couldn't resolve host)/) end end end diff --git a/spec/acceptance/force_spec.rb b/spec/acceptance/force_spec.rb index a439023..5f4dec3 100644 --- a/spec/acceptance/force_spec.rb +++ b/spec/acceptance/force_spec.rb @@ -59,7 +59,7 @@ describe 'apt::force define', :unless => UNSUPPORTED_PLATFORMS.include?(fact('os it 'should work with no errors' do pp = <<-EOS include apt - apt::force { 'vim': timeout => '1' } + apt::force { 'ocaml': timeout => '1' } EOS shell('apt-get clean') @@ -68,7 +68,7 @@ describe 'apt::force define', :unless => UNSUPPORTED_PLATFORMS.include?(fact('os end end - describe package('vim') do + describe package('ocaml') do it { should_not be_installed } end end