puppet-swift/spec/classes/swift_repo_milestone_spec.rb
Dan Bode d7698139fe Update spec tests
Add libdistcodename to all apt repo spec tests so
that they will work with the latest version of apt.
2012-03-13 16:42:57 -07:00

23 lines
449 B
Ruby

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
subject
end.should raise_error(Puppet::Error)
end
end
describe 'when apt is included' do
let :pre_condition do
'include apt'
end
it { should contain_apt__ppa('ppa:swift-core/milestone') }
end
end