Sha256: 4667239e9e13d3024e087c80ff3e5d6dd8a7b3e6b56ca02ea4820253e241dc1a
Contents?: true
Size: 488 Bytes
Versions: 7
Compression:
Stored size: 488 Bytes
Contents
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 expect(AwesomeSpawn).to receive(:run).with("echo", nil => "test") subject.run("echo", nil => "test") end it "#run!" do expect(AwesomeSpawn).to receive(:run!).with("echo", nil => "test") subject.run!("echo", nil => "test") end end
Version data entries
7 entries across 7 versions & 1 rubygems