If you're talking about testing it, it gets its own test like https://github.com/puppetlabs/puppetlabs-java/blob/master/spec/unit/facter/java_version_spec.rb. If you're talking about using the custom fact in an otherwise unrelated unit test. it depends on who sets the fact, and where; you may need to mock it up or just set it in a `let :facts` block for simplicity.
Rob Nelson [email protected] On Mon, Jul 24, 2017 at 2:42 PM, James Perry <[email protected]> wrote: > Thanks. >> > > I had looked at these but was missing something along the way. I now have > what appears to be a working setup and a *rake rspec* is now properly > mocking and testing the modules. > > Now I just have to figure out why it isn't picking up the custom fact. > That will require more RTFM and Google. > > -- > 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/ad122dc6-7a12-4770-b115-dc0436fdc17c%40googlegroups.com > <https://groups.google.com/d/msgid/puppet-dev/ad122dc6-7a12-4770-b115-dc0436fdc17c%40googlegroups.com?utm_medium=email&utm_source=footer> > . > 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/CAC76iT8DxrrneURYJMMJH9QHOuEKkGpB2aTVvMFXho6PHcdo3g%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
