puppet-vitrage/spec/shared_examples.rb
mgrosz 24ed319d05 puppet-vitrage: Initial commit
This is the initial commit for puppet-vitrage.
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: Ieb46f034ed35fb5e3c187f78f730139b469d9cf4
2015-12-17 07:53:19 +02: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