diff --git a/spec/unit/facter/java_version_spec.rb b/spec/unit/facter/java_version_spec.rb index 20f4f52..5d65a04 100644 --- a/spec/unit/facter/java_version_spec.rb +++ b/spec/unit/facter/java_version_spec.rb @@ -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