Sha256: cfe94f6fb25987c6d8d0e5befbfc7d954d8828820563e272879ab7dd927c4e18
Contents?: true
Size: 522 Bytes
Versions: 20
Compression:
Stored size: 522 Bytes
Contents
require 'spec_helper' describe BigBrother::ShellExecutor do describe "#invoke" do run_in_reactor it "runs a command" do executor = BigBrother::ShellExecutor.new output, exit_status = executor.invoke('echo hi') output.should == "hi\n" exit_status.should == 0 end it "failed command" do executor = BigBrother::ShellExecutor.new output, exit_status = executor.invoke('test -e /this/isnt/here') output.should == "" exit_status.should == 1 end end end
Version data entries
20 entries across 20 versions & 1 rubygems