fuel-library/deployment/puppet/cobbler/spec/shared_examples.rb
Alex Schultz d0b94c9572 Initial set of tests for cobbler module
This change includes an initial test setup for the cobbler module and
ensures that running 'rake lint' will pass.

Change-Id: I575483d8f36fcd236fd81ec012b16b44900b9960
Related-Bug: #1507751
2015-10-19 16:45:59 -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