puppet-cloudkitty/spec/shared_examples.rb
Xingchao Yu 78f52ecfac This is the initial commit for puppet-cloudkitty.
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: I43e8be43f6c77d55ff0c5879344020942eb9cf43
2016-10-20 10:53:32 +08: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