puppet-sahara/spec/shared_examples.rb
Takashi Kajinami 0bddd67a5b Load libraries in a single place
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
2021-12-27 13:39:36 +09: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