Sha256: 324a5462bb0ccace95c8189a88d1ceb58d1f45f7c45fdd412aeb9f526b602bee

Contents?: true

Size: 406 Bytes

Versions: 4

Compression:

Stored size: 406 Bytes

Contents

require 'spec_helper'

describe Terrapin::CommandLine::Output do
  it 'holds an input and error stream' do
    output = Terrapin::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 = Terrapin::CommandLine::Output.new(:a, :b)
    expect(output.to_s).to eq 'a'
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
terrapin-1.0.1 spec/terrapin/command_line/output_spec.rb
terrapin-1.0.0 spec/terrapin/command_line/output_spec.rb
terrapin-0.6.0 spec/terrapin/command_line/output_spec.rb
terrapin-0.6.0.alpha spec/terrapin/command_line/output_spec.rb