Files
f1ed9f4023efbc0d56fd0c6704a78b7ab1b8fb2d
puppet-oslo /spec /shared_examples.rb
2016年01月18日 12:09:44 +08: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