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

Version Path
linux_admin-0.11.1 spec/common_spec.rb
linux_admin-0.11.0 spec/common_spec.rb
linux_admin-0.10.1 spec/common_spec.rb
linux_admin-0.10.0 spec/common_spec.rb
linux_admin-0.9.4 spec/common_spec.rb
linux_admin-0.9.3 spec/common_spec.rb
linux_admin-0.9.2 spec/common_spec.rb