Sha256: 70257a0b0485659ff60352e9c4b95e2b1da5e63c951c1795eaa33e30ed613c55
Contents?: true
Size: 734 Bytes
Versions: 2
Compression:
Stored size: 734 Bytes
Contents
require 'spec_helper' describe Terrapin::CommandLine::PopenRunner do if Terrapin::CommandLine::PopenRunner.supported? it_behaves_like 'a command that does not block' it 'runs the command given and captures the output in an Output' do output = subject.call("echo hello") expect(output).to have_output "hello\n" end it 'modifies the environment and runs the command given' do output = subject.call("echo $yes", {"yes" => "no"}) expect(output).to have_output "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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
terrapin-0.6.0 | spec/terrapin/command_line/runners/popen_runner_spec.rb |
terrapin-0.6.0.alpha | spec/terrapin/command_line/runners/popen_runner_spec.rb |