Fix rspec 3.x syntax

- Convert 'should' keyword to 'is_expected.to'

Change-Id: I484efa4ba428c15ec7810fbe4e780276b2ebff5d
Signed-off-by: Gael Chamoulaud <gchamoul@redhat.com>
This commit is contained in:
Gael Chamoulaud 2015-07-21 12:57:02 +02:00
parent 2588f668da
commit 1129efb19f

View File

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