aboutsummaryrefslogtreecommitdiffstats
path: root/spec/shared_examples.rb
blob: fec0eacc9826a60e94ab517f68ec7b21f9d36248 (plain)
1
2
3
4
5
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