puppet-openstack-cloud/spec/shared_examples.rb
Emilien Macchi 0ad5de7675 Add shared_examples.rb file
Signed-off-by: Emilien Macchi <emilien.macchi@enovance.com>
2013-12-28 12:14:48 +01:00

6 lines
205 B
Ruby

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