Sha256: 9719d057f45cbf34b65f2c5ea4556ee2830bde5612d6dafa182f50037775981b
Contents?: true
Size: 676 Bytes
Versions: 2
Compression:
Stored size: 676 Bytes
Contents
require 'spec_helper' describe "Cmds.err" do it "gets echo error output" do expect( Cmds.err "echo %s 1>&2", ["hey there!"] ).to eq "hey there!\n" end it "reads input" do expect( Cmds.err("ruby -e %{script}", script: "$stderr.puts STDIN.read") { "hey there!" } ).to eq "hey there!\n" end end # Cmds.err describe "Cmds#err" do it "gets echo error output" do expect( Cmds.new("echo %s 1>&2").err ["hey there!"] ).to eq "hey there!\n" end it "reads input" do expect( Cmds.new("ruby -e %{script}").err(script: "$stderr.puts STDIN.read") { "hey there!" } ).to eq "hey there!\n" end end # Cmds#err
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
cmds-0.0.9 | spec/cmds/err_spec.rb |
cmds-0.0.8 | spec/cmds/err_spec.rb |