puppet-heat/spec/shared_examples.rb
Francesco Vollero c393ba3bef Initial setup for the test environment in puppet-heat
Change-Id: I2a8523bb503cec68e278542100be35bfac12cba9
Signed-off-by: Francesco Vollero <fvollero@redhat.com>
2013-08-05 19:22:24 +02: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