From d7698139fe31016d150bb6c05f43c967bf039ef3 Mon Sep 17 00:00:00 2001 From: Dan Bode Date: Tue, 13 Mar 2012 16:42:57 -0700 Subject: [PATCH] Update spec tests Add libdistcodename to all apt repo spec tests so that they will work with the latest version of apt. --- spec/classes/swift_repo_milestone_spec.rb | 4 ++++ spec/classes/swift_repo_release_spec.rb | 4 ++++ spec/classes/swift_repo_trunk_spec.rb | 4 ++++ 3 files changed, 12 insertions(+) diff --git a/spec/classes/swift_repo_milestone_spec.rb b/spec/classes/swift_repo_milestone_spec.rb index aed096c0..a855b41e 100644 --- a/spec/classes/swift_repo_milestone_spec.rb +++ b/spec/classes/swift_repo_milestone_spec.rb @@ -1,6 +1,10 @@ require 'spec_helper' describe 'swift::repo::milestone' do + let :facts do + {:lsbdistcodename => 'oneiric'} + end + describe 'when apt is not included' do it 'should raise an error' do expect do diff --git a/spec/classes/swift_repo_release_spec.rb b/spec/classes/swift_repo_release_spec.rb index 12d44987..ec52f406 100644 --- a/spec/classes/swift_repo_release_spec.rb +++ b/spec/classes/swift_repo_release_spec.rb @@ -1,6 +1,10 @@ require 'spec_helper' describe 'swift::repo::release' do + let :facts do + {:lsbdistcodename => 'oneiric'} + end + describe 'when apt is not included' do it 'should raise an error' do expect do diff --git a/spec/classes/swift_repo_trunk_spec.rb b/spec/classes/swift_repo_trunk_spec.rb index 8b537d2b..41f551bc 100644 --- a/spec/classes/swift_repo_trunk_spec.rb +++ b/spec/classes/swift_repo_trunk_spec.rb @@ -1,6 +1,10 @@ require 'spec_helper' describe 'swift::repo::trunk' do + let :facts do + {:lsbdistcodename => 'oneiric'} + end + describe 'when apt is not included' do it 'should raise an error' do expect do