spec/common_spec.rb in linux_admin-0.9.1 vs spec/common_spec.rb in linux_admin-0.9.2

- old
+ new

@@ -1,21 +1,19 @@ -require 'spec_helper' - describe LinuxAdmin::Common do subject { Class.new { include LinuxAdmin::Common }.new } context "#cmd" do it "looks up local command from id" do expect(subject.cmd(:dd)).to match(/bin\/dd/) end end it "#run" do - AwesomeSpawn.should_receive(:run).with("echo", nil => "test") + expect(AwesomeSpawn).to receive(:run).with("echo", nil => "test") subject.run("echo", nil => "test") end it "#run!" do - AwesomeSpawn.should_receive(:run!).with("echo", nil => "test") + expect(AwesomeSpawn).to receive(:run!).with("echo", nil => "test") subject.run!("echo", nil => "test") end end