Sha256: 35cfbf3b6d3fd5fe9ba409f3f413615a20c6c85e066203a99d22e2ab2bf436f0
Contents?: true
Size: 535 Bytes
Versions: 11
Compression:
Stored size: 535 Bytes
Contents
describe LinuxAdmin::System do describe "#reboot!" do it "reboots the system" do expect(LinuxAdmin::System).to receive(:run!). with(LinuxAdmin::System.cmd(:shutdown), :params => { '-r' => 'now'}) LinuxAdmin::System.reboot! end end describe "#shutdown!" do it "shuts down the system" do expect(LinuxAdmin::System).to receive(:run!). with(LinuxAdmin::System.cmd(:shutdown), :params => { '-h' => '0'}) LinuxAdmin::System.shutdown! end end end
Version data entries
11 entries across 11 versions & 1 rubygems