Sha256: 2d1f03254a9ed3635c19f77dfdd19424997244be5a2befefa8230688e0226220
Contents?: true
Size: 633 Bytes
Versions: 9
Compression:
Stored size: 633 Bytes
Contents
require 'spec_helper' describe Cocaine::CommandLine::BackticksRunner do if Cocaine::CommandLine::BackticksRunner.supported? it_behaves_like 'a command that does not block' it 'runs the command given' do subject.call("echo hello").should == "hello\n" end it 'modifies the environment and runs the command given' do subject.call("echo $yes", {"yes" => "no"}).should == "no\n" end it 'sets the exitstatus when a command completes' do subject.call("ruby -e 'exit 0'") $?.exitstatus.should == 0 subject.call("ruby -e 'exit 5'") $?.exitstatus.should == 5 end end end
Version data entries
9 entries across 9 versions & 2 rubygems