Merge pull request #421 from Filipovici-Andrei/master

(maint) correct test when java is not installed
This commit is contained in:
carabasdaniel
2020-03-18 14:06:59 +02:00
committed by GitHub

View File

@@ -63,6 +63,7 @@ describe 'java_version' do
it do
allow(Facter::Util::Resolution).to receive(:exec) # Catch all other calls
allow(Facter::Util::Resolution).to receive(:which).and_return(nil)
expect(Facter.value(:java_version)).to be_nil
end
end