
This patch aim to update our specs test in order to work with the new rspec-puppet release 2.0.0, in the mean time, we update rspec syntax in order to be prepared for rspec 3.x move. In details: * Convert 'should' keyword to 'is_expected.to' (prepare rspec 3.x) * Upgrade and pin rspec-puppet from 1.0.1 to 2.0.0 * Clean Gemfile (remove over-specificication of runtime deps of puppetlabs_spec_helper) Change-Id: I062afe69fea8acb4785c537df7400d9c5d7034b4 Signed-off-by: Gael Chamoulaud <gchamoul@redhat.com>
15 lines
375 B
Ruby
15 lines
375 B
Ruby
require 'spec_helper'
|
|
|
|
describe 'manila::client' do
|
|
it { is_expected.to contain_package('python-manilaclient').with_ensure('present') }
|
|
let :facts do
|
|
{:osfamily => 'Debian'}
|
|
end
|
|
context 'with params' do
|
|
let :params do
|
|
{:package_ensure => 'latest'}
|
|
end
|
|
it { is_expected.to contain_package('python-manilaclient').with_ensure('latest') }
|
|
end
|
|
end
|