-
Notifications
You must be signed in to change notification settings - Fork 8
Release Notes
TomPoulton edited this page Jan 16, 2015
·
6 revisions
All yaml files can now be validated regardless of file name collisions, thanks to @jumanjiman
Now supports segmented yaml filenames (e.g. foo.bar.yaml) courtesy of @jumanjiman
New things:
-
stubandexpecthelper methods replace having to dostubs(:call)andexpects(:call) -
MockFunctionnow wires up a call tocallso you can doexpect.with(...).onceon:statementfunctions
stubs(:call) and expects(:call) still work for backwards compatibility.
New things:
-
HieraData::Validatornow supports a list of required files - The
loadmethod ofHieraData::YamlValidatorhas been replaced byload_datafor better readability - Load errors are handled differently to allow for a cleaner, more performant spec
There are no breaking changes in this version (hopefully!)
There are a few breaking changes with MockFunction in this version.
-
self(example_group) is no longer needed as an argument fornew() -
:default_valueis no longer supported in the options hash (use block instead) -
new()now takes an optional block that exposes the mock function for setting up default behavior - Mock functions aren't added to a
before(:each)block internally anymore, so any before behavior needs to be defined in the specs (see readme for examples)
Hiera data file validation has been added so you can run some basic checks against all of your yaml files directly, without having to go through hiera