puppet-ec2api/spec/shared_examples.rb
Marcos Fermin Lobo 925228ec90 puppet-ec2api: Initial commit
This is the initial commit for puppet-ec2api.
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: Id1b33d137596b94b09b6731e55c7f81e7838deb2
2016-04-15 17:45:05 +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