puppet-congress/spec/shared_examples.rb
Dan Radez 7ec60eb0ce Initial Commit
Signed-off-by: Dan Radez <dradez@redhat.com>
2016-03-13 11:48:15 -04: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