spec/system_spec.rb in linux_admin-0.1.3 vs spec/system_spec.rb in linux_admin-0.2.0
- old
+ new
@@ -1,19 +1,19 @@
require 'spec_helper'
describe LinuxAdmin::System do
describe "#reboot!" do
it "reboots the system" do
- LinuxAdmin::System.should_receive(:run).
+ LinuxAdmin::System.should_receive(:run!).
with(LinuxAdmin::System.cmd(:shutdown),
:params => { '-r' => 'now'})
LinuxAdmin::System.reboot!
end
end
describe "#shutdown!" do
it "shuts down the system" do
- LinuxAdmin::System.should_receive(:run).
+ LinuxAdmin::System.should_receive(:run!).
with(LinuxAdmin::System.cmd(:shutdown),
:params => { '-h' => '0'})
LinuxAdmin::System.shutdown!
end
end