X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=3rdparty%2Fmodules%2Fopenstacklib%2Fspec%2Fdefines%2Fopenstacklib_service_validation_spec.rb;h=cc196f076a5807546a9b1dd5c3fc8aa4f0d9af77;hb=71a236efd9f45828d875a0a5fd025108bb1dcada;hp=17e4389a69afd46ca36f39cc2e7ed49c706902ff;hpb=8132e6bb1199463f5e334326659c974d4772b3e3;p=dsa-puppet.git diff --git a/3rdparty/modules/openstacklib/spec/defines/openstacklib_service_validation_spec.rb b/3rdparty/modules/openstacklib/spec/defines/openstacklib_service_validation_spec.rb index 17e4389a..cc196f07 100644 --- a/3rdparty/modules/openstacklib/spec/defines/openstacklib_service_validation_spec.rb +++ b/3rdparty/modules/openstacklib/spec/defines/openstacklib_service_validation_spec.rb @@ -32,7 +32,7 @@ describe 'openstacklib::service_validation' do required_params end - it { should contain_exec("execute #{title} validation").with( + it { is_expected.to contain_exec("execute #{title} validation").with( :path => '/usr/bin:/bin:/usr/sbin:/sbin', :provider => 'shell', :command => 'nova list', @@ -40,7 +40,7 @@ describe 'openstacklib::service_validation' do :try_sleep => '2', )} - it { should contain_anchor("create #{title} anchor").with( + it { is_expected.to contain_anchor("create #{title} anchor").with( :require => "Exec[execute #{title} validation]", )} @@ -50,7 +50,7 @@ describe 'openstacklib::service_validation' do let :params do required_params.delete(:command) end - it { expect { should raise_error(Puppet::Error) } } + it { expect { is_expected.to raise_error(Puppet::Error) } } end end