puppet-n1k-vsm/spec/shared_examples.rb
Emilien Macchi 8266fb6dd5 Implement first unit tests
* Add the required files for unit testing.
* Add a basic test to validate packaging version.
* Fix stdlib syntax to be Puppet compliant.
* Fix lint

Change-Id: I36fd23534e0c724da8d6683fbf2a1e67aa616ebf
2015-10-01 15:46:34 -07: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