puppet-glare/spec/shared_examples.rb
Denis Egorenko 564c1f7930 puppet-glare: Initial commit
This is the initial commit for puppet-glare.
It has been automatically generated using cookiecutter[1] and msync[2]

[1] https://github.com/openstack/puppet-openstack-cookiecutter
[2] https://github.com/openstack/puppet-modulesync-configs

Change-Id: I614a3d93947705a7a74820017bc568c6de197bea
2016-09-14 17:05:00 +03:00

6 lines
213 B
Ruby

shared_examples_for "a Puppet::Error" do |description|
it "with message matching #{description.inspect}" do
expect { is_expected.to have_class_count(1) }.to raise_error(Puppet::Error, description)
end
end