Sha256: 3d49ff3e9d7e70e6b05ea872852a8795ea98bde0845b2a322a4c1fc0fea6dc05

Contents?: true

Size: 632 Bytes

Versions: 39

Compression:

Stored size: 632 Bytes

Contents

require File.dirname(__FILE__) + '/../spec_helper'

describe YARD::CLI::Help do
  describe '#run' do
    it "should accept 'help command'" do
      CLI::Yardoc.should_receive(:run).with('--help')
      CLI::Help.run('doc')
    end
    
    it "should accept no arguments (lists all commands)" do
      CLI::CommandParser.should_receive(:run).with('--help')
      CLI::Help.run
    end
    
    it "should show all commands if command isn't found" do
      CLI::CommandParser.should_receive(:run).with('--help')
      help = CLI::Help.new
      help.should_receive(:puts).with(/not found/)
      help.run('unknown')
    end
  end
end

Version data entries

39 entries across 39 versions & 4 rubygems

Version Path
nutshell-crm-0.0.5 vendor/bundle/gems/yard-0.7.4/spec/cli/help_spec.rb
nutshell-crm-0.0.4 vendor/bundle/gems/yard-0.7.4/spec/cli/help_spec.rb
nutshell-crm-0.0.3 vendor/bundle/gems/yard-0.7.4/spec/cli/help_spec.rb
nutshell-crm-0.0.2 vendor/bundle/gems/yard-0.7.4/spec/cli/help_spec.rb
yard-0.7.4 spec/cli/help_spec.rb
yard-0.7.3 spec/cli/help_spec.rb
vanity-1.7.1 vendor/ruby/1.9.1/gems/yard-0.7.2/spec/cli/help_spec.rb
yard-0.7.2 spec/cli/help_spec.rb
yard-0.7.1 spec/cli/help_spec.rb
yard-0.7.0 spec/cli/help_spec.rb
yard-0.6.8 spec/cli/help_spec.rb
yard-0.6.7 spec/cli/help_spec.rb
yard-0.6.6 spec/cli/help_spec.rb
yard-0.6.5 spec/cli/help_spec.rb
yard-0.6.4 spec/cli/help_spec.rb
yard-0.6.3 spec/cli/help_spec.rb
yard-0.6.2 spec/cli/help_spec.rb
yard-0.6.1 spec/cli/help_spec.rb
yard-0.6.0 spec/cli/help_spec.rb