puppet-openstack-cloud/spec/shared_examples.rb
Sebastien Badia c53d5b84ec Convert specs to RSpec 2.99.2 syntax with Transpec
This conversion is done by Transpec 2.3.7
2014-09-30 12:27:42 +02: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