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:
@@ -1,5 +1,5 @@
|
|||||||
shared_examples_for "a Puppet::Error" do |description|
|
shared_examples_for "a Puppet::Error" do |description|
|
||||||
it "with message matching #{description.inspect}" do
|
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
|
||||||
end
|
end
|
||||||
|
Reference in New Issue
Block a user