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
challah-0.6.2 vendor/bundle/gems/yard-0.7.5/spec/cli/help_spec.rb
challah-0.6.1 vendor/bundle/gems/yard-0.7.5/spec/cli/help_spec.rb
challah-0.6.0 vendor/bundle/gems/yard-0.7.5/spec/cli/help_spec.rb
challah-0.5.4 vendor/bundle/gems/yard-0.7.5/spec/cli/help_spec.rb
challah-0.5.3 vendor/bundle/gems/yard-0.7.5/spec/cli/help_spec.rb
challah-0.5.2 vendor/bundle/gems/yard-0.7.5/spec/cli/help_spec.rb
challah-0.5.1 vendor/bundle/gems/yard-0.7.5/spec/cli/help_spec.rb
challah-0.5.0 vendor/bundle/gems/yard-0.7.5/spec/cli/help_spec.rb
challah-0.4.1 vendor/bundle/gems/yard-0.7.5/spec/cli/help_spec.rb
challah-0.4.0 vendor/bundle/gems/yard-0.7.5/spec/cli/help_spec.rb
challah-0.3.5 vendor/bundle/gems/yard-0.7.5/spec/cli/help_spec.rb
challah-0.3.4 vendor/bundle/gems/yard-0.7.5/spec/cli/help_spec.rb
challah-0.3.3 vendor/bundle/gems/yard-0.7.5/spec/cli/help_spec.rb
challah-0.3.2 vendor/bundle/gems/yard-0.7.5/spec/cli/help_spec.rb
challah-0.3.1 vendor/bundle/gems/yard-0.7.5/spec/cli/help_spec.rb
challah-0.3.0 vendor/bundle/gems/yard-0.7.5/spec/cli/help_spec.rb
challah-0.2.1 vendor/bundle/gems/yard-0.7.5/spec/cli/help_spec.rb
challah-0.2.0 vendor/bundle/gems/yard-0.7.5/spec/cli/help_spec.rb
yard-0.7.5 spec/cli/help_spec.rb
nutshell-crm-0.0.6.alpha vendor/bundle/gems/yard-0.7.4/spec/cli/help_spec.rb