
This commit adds test coverage for almost all swift classes and defines. It does not quite add 100% coverage (probably more like 85%)
19 lines
382 B
Ruby
19 lines
382 B
Ruby
require 'spec_helper'
|
|
describe 'swift::repo::trunk' do
|
|
|
|
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/trunk') }
|
|
end
|
|
end
|