Merge pull request #303 from apenney/fix-ubuntu-10-tests

Fix the tests for Ubuntu 10.04.
This commit is contained in:
Morgan Haskel 2014-05-29 13:07:38 -04:00
commit 4929de0d42
2 changed files with 3 additions and 3 deletions

View file

@ -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

View file

@ -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