end
describe 'when apt has security updates' do
before(:each) do
allow(Facter.fact(:osfamily)).to receive(:value).and_return('Debian')
allow(File).to receive(:executable?) # Stub all other calls
end
describe 'when apt has security updates' do
before(:each) do
allow(Facter.fact(:osfamily)).to receive(:value).and_return('Debian')
allow(File).to receive(:executable?) # Stub all other calls