Skip to content
TomPoulton edited this page Jan 16, 2015 · 6 revisions

v2.0.6

All yaml files can now be validated regardless of file name collisions, thanks to @jumanjiman

v2.0.5

Now supports segmented yaml filenames (e.g. foo.bar.yaml) courtesy of @jumanjiman

v2.0.2

New things:

  • stub and expect helper methods replace having to do stubs(:call) and expects(:call)
  • MockFunction now wires up a call to call so you can do expect.with(...).once on :statement functions

stubs(:call) and expects(:call) still work for backwards compatibility.

v2.0.1

New things:

  • HieraData::Validator now supports a list of required files
  • The load method of HieraData::YamlValidator has been replaced by load_data for better readability
  • Load errors are handled differently to allow for a cleaner, more performant spec

There are no breaking changes in this version (hopefully!)

v2.0.0

There are a few breaking changes with MockFunction in this version.

  • self (example_group) is no longer needed as an argument for new()
  • :default_value is 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

Clone this wiki locally