I saw testing failures in #165 that traced to Facter.fact(:somefact).value returning nil. This PR addresses the issue by using the Facter.value method instead of Facter.fact, adding the FPM::Cookery::Facts.value wrapper method to short-circuit prior to calling .downcase.to_sym when the requested value is nil. I also updated the related spec file to call Facter.value, and simplified testing of the :lsbcodename fact.
The PR also bumps the rspec dependency to 3.3 in order to gain access to the --bisect option that helps track down ordering-dependent test failures.
I saw testing failures in #165 that traced to
Facter.fact(:somefact).value
returningnil
. This PR addresses the issue by using theFacter.value
method instead ofFacter.fact
, adding theFPM::Cookery::Facts.value
wrapper method to short-circuit prior to calling.downcase.to_sym
when the requested value isnil
. I also updated the related spec file to callFacter.value
, and simplified testing of the:lsbcodename
fact.The PR also bumps the
rspec
dependency to 3.3 in order to gain access to the--bisect
option that helps track down ordering-dependent test failures.