From ec077973999ee46e993954a747cc36b88769fab3 Mon Sep 17 00:00:00 2001 From: Ashley Penney Date: Thu, 29 May 2014 13:05:51 -0400 Subject: [PATCH] Fix the tests for Ubuntu 10.04. --- spec/acceptance/apt_key_provider_spec.rb | 2 +- spec/acceptance/force_spec.rb | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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 -- 2.45.2