rspec-puppet supports classes, functions, defined types, but not facts.
spec
|
-> classses
-> defines
-> facts ? ? ? ?? ?
Is there a recommended way to test facts?
I've seen a few examples, but they seem hacky, and I have a feeling this should be or is available from puppet modules.
--> requires re-writing every fact. Not super keen on doing that if I don't have to.
--> seems to work at first, but then when I change an expectation from false to true, it still passes. This is 2 years old and the version of rspec isn't locked down in the gemfile, so it may not even be valid with the latest version.
Does anyone have a working solution? Maybe my google-fu isn't very good.. there has to be something out there that works?