File: abstract_io_spec.rb

package info (click to toggle)
ruby-childprocess 5.1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 260 kB
  • sloc: ruby: 1,285; makefile: 4
file content (12 lines) | stat: -rw-r--r-- 276 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
require File.expand_path('../spec_helper', __FILE__)

describe ChildProcess::AbstractIO do
  let(:io) { ChildProcess::AbstractIO.new }

  it "inherits the parent's IO streams" do
    io.inherit!

    expect(io.stdout).to eq STDOUT
    expect(io.stderr).to eq STDERR
  end
end