0bddd67a5b
This change refactors how the dependent libraries are loaded during unit tests, and load the libraries in the base spec_helper to avoid duplicate and redundant implementations. Change-Id: I74d98e8307033584eaf34cf32955ef2b155e72db
6 lines
213 B
Ruby
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
|