Closed rski closed 7 years ago
I'm trying to figure out why the tests fail on ruby 1.9 and I can't. Looking here, https://travis-ci.org/rski/puppet-network/jobs/179865424 it seems that the mock of the version call is ignored. In the more recent versions it works and my ruby knowledge is not that intricate to tell why this happens.
Hm one way to solve this would probably be to reverse the condition and switch the if with unless
coverage fails because some codepaths are not triggered anymore in tests with facter 3 and so they are not tested, which is pretty much the point of this pr
i would be merging this despite coveralls drop.
@igalic Maybe we could configure the coveralls setting COVERAGE DECREASE THRESHOLD FOR FAILURE
?
Or have it never fail the build but leave comments instead?
if you're ok with merging it, I'm ok too I guess
Primary interface and primary IP can be found from Facter 3 facts, so use those if Facter 3 is available.