Sha256: 564f738c0a13d191606f8cc122b102231edd863371c6becaffa8ae290ccede36
Contents?: true
Size: 503 Bytes
Versions: 2
Compression:
Stored size: 503 Bytes
Contents
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") subject.run("echo", nil => "test") end it "#run!" do AwesomeSpawn.should_receive(:run!).with("echo", nil => "test") subject.run!("echo", nil => "test") end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
linux_admin-0.9.1 | spec/common_spec.rb |
linux_admin-0.9.0 | spec/common_spec.rb |