Sha256: d35c0f1fec0bc07ea3fe4908c39ee1f4067f3e5991487fcdb18372c93aabbc74
Contents?: true
Size: 623 Bytes
Versions: 8
Compression:
Stored size: 623 Bytes
Contents
require File.dirname(__FILE__) + '/../spec_helper' describe YARD::CLI::Help do describe "#run" do it "accepts help command" do expect(CLI::Yardoc).to receive(:run).with('--help') CLI::Help.run('doc') end it "accepts no arguments (and lists all commands)" do expect(CLI::CommandParser).to receive(:run).with('--help') CLI::Help.run end it "shows all commands if command isn't found" do expect(CLI::CommandParser).to receive(:run).with('--help') help = CLI::Help.new expect(log).to receive(:puts).with(/not found/) help.run('unknown') end end end
Version data entries
8 entries across 7 versions & 2 rubygems