spec/system_spec.rb in linux_admin-0.14.0 vs spec/system_spec.rb in linux_admin-0.15.0

- old
+ new

@@ -1,19 +1,15 @@ 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'}) + 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::System).to receive(:run!). - with(LinuxAdmin::System.cmd(:shutdown), - :params => { '-h' => '0'}) + expect(LinuxAdmin::Common).to receive(:run!).with(LinuxAdmin::Common.cmd(:shutdown), :params => {'-h' => '0'}) LinuxAdmin::System.shutdown! end end end