Sha256: ae7edd7d361f5b9aeb42220c6bf9f3701d0188133a59e7feaa52d179594f5daa

Contents?: true

Size: 472 Bytes

Versions: 1

Compression:

Stored size: 472 Bytes

Contents

require 'spec_helper'

describe Rallycat::CLI do
  it 'should default to STDOUT' do
    STDOUT.should_receive(:puts).with 'only support for `cat` exists at the moment.'
    cli = Rallycat::CLI.new []
    cli.run
  end
end

describe Rallycat::CLI, '#run' do

  it 'should execute command' do
    sout = StringIO.new
    cli  = Rallycat::CLI.new ['help'], sout

    cli.run

    sout.rewind
    sout.read.should == "only support for `cat` exists at the moment.\n"
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rallycat-0.1.0 spec/lib/rallycat/cli_spec.rb