Thanks. I think I will set the use a `let :facts` block for this testing. I 
want to have it test against specific mocked facts. 

On Monday, July 24, 2017 at 3:04:14 PM UTC-4, Rob Nelson wrote:
>
> 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
> rnel...@gmail.com <javascript:>
>
> On Mon, Jul 24, 2017 at 2:42 PM, James Perry <jjpe...@gmail.com 
> <javascript:>> 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 puppet-dev+...@googlegroups.com <javascript:>.
>> 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 puppet-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-dev/c3bc6728-3d14-4703-b970-80c97319e8a9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to