fuel-library/deployment/puppet/tweaks/spec/shared_examples.rb
Alex Schultz add100a3a5 Unit tests for the tweaks class
This change implements tests for the tweaks class.

Change-Id: Ic07671eaf17bb622cd906670901787aaa8b397dd
Related-Bug: #1507751
2015-11-16 08:33:08 -06: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