puppet-placement/spec/shared_examples.rb
Lee Yarwood d51cdf664a Initial cookiecutter run and import from puppet-nova
Change-Id: I755606d45151235b03eaa315a3b55fefd6d1ee33
2018-12-11 10:40:58 +00: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