allow(File).to receive(:file?).and_return(true)
allow(File).to receive(:file?).once.with('/var/run/reboot-required').and_return(false)
end
allow(File).to receive(:file?).and_return(true)
allow(File).to receive(:file?).once.with('/var/run/reboot-required').and_return(false)
end