Cleanup rspec tests of nova::client

Change-Id: I13652068ba2e99304a85cf3ac4ff0da5cd16b16b
This commit is contained in:
Mathieu Gagné
2014-01-30 16:42:14 -05:00
parent f61a058c5e
commit c12ab34148

View File

@@ -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