Sha256: 43baa35f061c373edc64bebf01b7fe1e9970fa125012185ae5f2230f5e262fca

Contents?: true

Size: 403 Bytes

Versions: 5

Compression:

Stored size: 403 Bytes

Contents

require 'spec_helper'

describe Cocaine::CommandLine::Output do
  it 'holds an input and error stream' do
    output = Cocaine::CommandLine::Output.new(:a, :b)
    expect(output.output).to eq :a
    expect(output.error_output).to eq :b
  end

  it 'calls #to_s on the output when you call #to_s on it' do
    output = Cocaine::CommandLine::Output.new(:a, :b)
    expect(output.to_s).to eq 'a'
  end
end

Version data entries

5 entries across 5 versions & 3 rubygems

Version Path
cocaine-0.6.0 spec/cocaine/command_line/output_spec.rb
cocaine-0.6.0.alpha spec/cocaine/command_line/output_spec.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/cocaine-0.5.8/spec/cocaine/command_line/output_spec.rb
ish_lib_manager-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/cocaine-0.5.8/spec/cocaine/command_line/output_spec.rb
cocaine-0.5.8 spec/cocaine/command_line/output_spec.rb