Sha256: 3d82752e78955800356f75f15b21ee23c344fe9708d0b07d782ec6beab01922f
Contents?: true
Size: 508 Bytes
Versions: 5
Compression:
Stored size: 508 Bytes
Contents
require 'qcmd' class NonStarter def start end end describe Qcmd::CLI do it 'should init on launch' do Qcmd::CLI.stub(:new) { NonStarter.new } Qcmd::CLI.should_receive :new Qcmd::CLI.launch end describe 'replace_args' do it 'should replace args in alias expression with values of given type' do cli = Qcmd::CLI.new new_command = cli.replace_args [:cue, :'$1', :name, "hello $2"], [:at, 2, 3] new_command.should eql([:cue, 2, :name, "hello 3"]) end end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
qcmd-0.2.0 | spec/unit/cli_spec.rb |
qcmd-0.1.16 | spec/unit/cli_spec.rb |
qcmd-0.1.16.pre2 | spec/unit/cli_spec.rb |
qcmd-0.1.16.pre | spec/unit/cli_spec.rb |
qcmd-0.1.15 | spec/unit/cli_spec.rb |