fuel-library/deployment/puppet/cluster/spec/shared_examples.rb
Alex Schultz 461ed3c7a6 Initial unit tests for cluster module
This change includes an initial set of unit tests for the cluster puppet
module.

Change-Id: Ie151ee13006ba1ea6591d95cb5bae3147086bdb8
Related-Bug: #1507751
2015-10-22 12:31:23 -05: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