Cleanup rspec tests of nova::client
Change-Id: I13652068ba2e99304a85cf3ac4ff0da5cd16b16b
This commit is contained in:
@@ -1,12 +1,15 @@
|
||||
require 'spec_helper'
|
||||
|
||||
describe 'nova::client' do
|
||||
it { should contain_package('python-novaclient').with_ensure('present') }
|
||||
describe "with specified version" do
|
||||
let :params do
|
||||
{:ensure => '2012.1-2'}
|
||||
end
|
||||
|
||||
context 'with default parameters' do
|
||||
it { should contain_package('python-novaclient').with_ensure('present') }
|
||||
end
|
||||
|
||||
context 'with ensure parameter provided' do
|
||||
let :params do
|
||||
{ :ensure => '2012.1-2' }
|
||||
end
|
||||
it { should contain_package('python-novaclient').with_ensure('2012.1-2') }
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user