X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=3rdparty%2Fmodules%2Fkeystone%2Fspec%2Fshared_examples.rb;h=fec0eacc9826a60e94ab517f68ec7b21f9d36248;hb=71a236efd9f45828d875a0a5fd025108bb1dcada;hp=d92156a3618e079ee5ee5f1b86edca31c09bdee7;hpb=52e13a709b5b959cd8995e7fa4f1b226bbe13a87;p=mirror%2Fdsa-puppet.git diff --git a/3rdparty/modules/keystone/spec/shared_examples.rb b/3rdparty/modules/keystone/spec/shared_examples.rb index d92156a36..fec0eacc9 100644 --- a/3rdparty/modules/keystone/spec/shared_examples.rb +++ b/3rdparty/modules/keystone/spec/shared_examples.rb @@ -1,5 +1,5 @@ shared_examples_for "a Puppet::Error" do |description| it "with message matching #{description.inspect}" do - expect { should have_class_count(1) }.to raise_error(Puppet::Error, description) + expect { is_expected.to have_class_count(1) }.to raise_error(Puppet::Error, description) end end