2014-11-14 19:55:14 +00:00
|
|
|
shared_examples_for "output writer" do
|
|
|
|
before do
|
|
|
|
@read, @write = IO.pipe
|
2016-04-05 21:12:29 +00:00
|
|
|
configure { |config| config.stderr = @write }
|
|
|
|
fork_connection
|
2014-11-14 19:55:14 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
let(:stderr) do
|
|
|
|
@write.close
|
|
|
|
@read.read
|
|
|
|
end
|
|
|
|
end
|