Re: [Puppet Users] rspec-puppet and testing custom facts

2014-09-02 Thread Sebastian Otaegui
I tested my facts like this: https://github.com/Spantree/puppet-thrift/blob/master/spec/unit/facter/thrift_version_spec.rb One detail to take into account is that I change the mock library from its default to rspec: https://github.com/Spantree/puppet-thrift/blob/master/spec/spec_helper.rb Regard

Re: [Puppet Users] rspec-puppet and testing custom facts

2014-09-02 Thread Hunter Haugen
On Tue, Sep 2, 2014 at 10:48 AM, Brett Swift wrote: > > rspec-puppet supports classes, functions, defined types, but not facts. > > > spec > | > -> classses > -> defines > -> facts? ? ? ?? ? > > > Is there a recommended way to test facts? > You don't actually need any of the hel