Debian Codegraph @

spec/shared_examples.rb

raw
1 shared_examples_for "a Puppet::Error" do |description|
2 it "with message matching #{description.inspect}" do
3 expect { is_expected.to have_class_count(1) }.to raise_error(Puppet::Error, description)
4 end
5 end