Sha256: b6f9c90d1ec4db21eadb425dd9b3e46daa7ab221d58060ae420d261f3f1986ad
Contents?: true
Size: 640 Bytes
Versions: 26
Compression:
Stored size: 640 Bytes
Contents
# frozen_string_literal: true require 'eac_cli/definition/alternative' RSpec.describe ::EacCli::Definition::Alternative do let(:instance) { described_class.new } it { expect { instance.arg_opt '-a', '--opt2', 'A argument option' }.not_to raise_error } it { expect { instance.bool_opt '-b', '--opt1', 'A boolean option' }.not_to raise_error } it { expect { instance.options_argument(true) }.not_to raise_error } it { expect { instance.pos_arg :pos1 }.not_to raise_error } it { expect { instance.pos_arg :pos2, optional: true, repeat: true }.not_to raise_error } it { expect { instance.subcommands }.not_to raise_error } end
Version data entries
26 entries across 26 versions & 2 rubygems