Sha256: f2a1a36787cfb3bf8333cc6c879df67728c60d733559b0b38c4f3d6a6e5cb0ac
Contents?: true
Size: 609 Bytes
Versions: 21
Compression:
Stored size: 609 Bytes
Contents
# frozen_string_literal: true RSpec.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
21 entries across 20 versions & 4 rubygems