Sha256: 75519f7aae0f95dce3d156dd72ba09dd43981aa52323ad618f9427280c9e09d6
Contents?: true
Size: 488 Bytes
Versions: 1
Compression:
Stored size: 488 Bytes
Contents
require 'spec_helper' describe Rallycat::CLI do it 'should default to STDOUT' do STDOUT.should_receive(:puts).with "'' is not a supported command. See 'rallycat help'." 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 ['foo'], sout cli.run sout.rewind sout.read.should == "'foo' is not a supported command. See 'rallycat help'.\n" end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rallycat-0.3.0 | spec/lib/rallycat/cli_spec.rb |