From c12ab341489e51d3519c02add89ba3a49d6782ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mathieu=20Gagne=CC=81?= Date: Thu, 30 Jan 2014 16:42:14 -0500 Subject: [PATCH] Cleanup rspec tests of nova::client Change-Id: I13652068ba2e99304a85cf3ac4ff0da5cd16b16b --- spec/classes/nova_client_spec.rb | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/spec/classes/nova_client_spec.rb b/spec/classes/nova_client_spec.rb index 46c88aee3..2057e2c01 100644 --- a/spec/classes/nova_client_spec.rb +++ b/spec/classes/nova_client_spec.rb @@ -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