(maint) correct test when java is not installed

This commit is contained in:
gimmy
2020-03-13 15:13:27 +02:00
committed by Andrei Filipovici
parent 3d49162219
commit c3104ce39b

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