I'm not getting it to work. Here's a minimal example project with a simple max function: https://github.com/dalen/puppet-v4functiontest
And here is the failing travis build for it: https://travis-ci.org/dalen/puppet-v4functiontest/builds/60517933 This is requiring the latest rspec-puppet (2.1.0) and puppet 4.0.0. What am I doing wrong? On Tue, 28 Apr 2015 at 17:00 Henrik Lindberg <[email protected]> wrote: > On 2015-28-04 16:53, Henrik Lindberg wrote: > > On 2015-28-04 15:16, Erik Dalén wrote: > >> Do any of you have any tips in regards to unit testing function using > >> the v4 API in modules? > >> > >> I would like to do something like this: > >> > https://github.com/puppetlabs/puppet/blob/master/spec/unit/functions/scanf_spec.rb > >> > >> > >> But PuppetSpec::Compiler & Matchers::Resource are in the spec/lib > >> directory of puppet which I can't depend on from a module AFAIK. > >> > >> Is there something equivalent in puppetlabs_spec_helper that works for > >> v4 API functions? > >> > > There is an updated version of puppet-rspec that will help with this. (I > > heard about this yesterday). Hunner knows more. > > > > https://github.com/rodjek/rspec-puppet/commit/a66f9654671f8cd935599209b56eee2768c7c8c1#diff-2374d7eefa56aafa2b25c2914973fecbR14 > > > - henrik > -- > > Visit my Blog "Puppet on the Edge" > http://puppet-on-the-edge.blogspot.se/ > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Developers" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/puppet-dev/mho73o%24dv8%242%40ger.gmane.org > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Puppet Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-dev/CAAAzDLdy5QCC_%2B2JA1vn%2BCXiX91yWj2zrDe%3DfJK%2BKccMrQKXVQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
