puppet-manila/spec/classes/manila_client_spec.rb
Gael Chamoulaud d60db0c73e Spec: updates for rspec-puppet 2.x and rspec 3.x
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>
2015-03-15 17:24:02 +01:00

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