Hi there,

I was playing with rspec and run `rake spec` on puppetlabs-apache module.

I'm have puppet-agent 1.2.2 installed and this error happens:

Failure/Error: Unable to find matching line from backtrace
     NameError:
       uninitialized constant Facter::Util::Loader

After some investigation, I've found that the problem comes down to
theses lines:

https://github.com/puppetlabs/puppetlabs-apache/blob/master/spec/spec_helper.rb#L9

Facter::Util::Loader.any_instance.stubs(:load_all)
Facter.clear
Facter.clear_messages

Looking further into the problem, I looked into the logs produced by
Travis-CI and finally understood that the tests are depending on
Facter 2.

I commented out those 3 lines and the tests passed fine locally.

Since I'm not that familiar with Facter's API changes from 2 to 3, are
these 3 lines still relevant? I've read the comment above them (Ensure
that we don't accidentally cache facts and environment between test
cases) but I still don't understand what is the issue being handled.

Is this in any way related to https://tickets.puppetlabs.com/browse/FACT-981 ?

Regards,

Miguel


-- 
http://www.instruct.com.br - 19 2511-6506

-- 
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/CAK6Ystn5GJNNQyaoqEwCVj3VbVYgQ3tDOGkzx5c1REgPyJnkgA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to