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