Forward standard error stream from remote execution

This commit is contained in:
Thibault Jouan
2014-07-21 12:45:57 +00:00
parent a033e19583
commit db91eb06cd
14 changed files with 93 additions and 17 deletions

View File

@@ -12,7 +12,9 @@ module Producer::Core
let(:stdout) { StringIO.new }
let(:stderr) { StringIO.new }
subject(:cli) { CLI.new(arguments, stdin: stdin, stdout: stdout) }
subject(:cli) { described_class.new(
arguments,
stdin: stdin, stdout: stdout, stderr: stderr) }
describe '.run!' do
let(:cli) { double('cli').as_null_object }
@@ -118,6 +120,10 @@ module Producer::Core
it 'assigns CLI stdout as the env output' do
expect(cli.env.output).to be stdout
end
it 'assigns CLI stderr as the env error output' do
expect(cli.env.error_output).to be stderr
end
end
describe '#parse_arguments!' do