From 1129efb19fc6bfbc118a453d44453824b8f79dd9 Mon Sep 17 00:00:00 2001 From: Gael Chamoulaud Date: Tue, 21 Jul 2015 12:57:02 +0200 Subject: [PATCH] Fix rspec 3.x syntax - Convert 'should' keyword to 'is_expected.to' Change-Id: I484efa4ba428c15ec7810fbe4e780276b2ebff5d Signed-off-by: Gael Chamoulaud --- spec/shared_examples.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/shared_examples.rb b/spec/shared_examples.rb index d92156a3..fec0eacc 100644 --- a/spec/shared_examples.rb +++ b/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