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