puppet-swift/spec/classes/swift_client_spec.rb

21 lines
450 B
Ruby
Raw Normal View History

require 'spec_helper'
describe 'swift::client' do
it { is_expected.to contain_package('swiftclient').with(
:ensure => 'present',
:name => 'python-swiftclient'
)}
let :facts do
{:osfamily => 'Debian'}
end
context 'with params' do
let :params do
{:ensure => 'latest'}
end
it { is_expected.to contain_package('swiftclient').with(
:ensure => 'latest',
:name => 'python-swiftclient'
)}
end
end