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

Version Path
avm-tools-0.92.0 vendor/eac_cli/spec/lib/eac_cli/definition/alternative_spec.rb
avm-tools-0.91.0 vendor/eac_cli/spec/lib/eac_cli/definition/alternative_spec.rb
avm-tools-0.90.0 vendor/eac_cli/spec/lib/eac_cli/definition/alternative_spec.rb
avm-tools-0.89.0 vendor/eac_cli/spec/lib/eac_cli/definition/alternative_spec.rb
avm-tools-0.88.0 vendor/eac_cli/spec/lib/eac_cli/definition/alternative_spec.rb
avm-tools-0.87.1 vendor/eac_cli/spec/lib/eac_cli/definition/alternative_spec.rb
ehbrs-tools-0.19.0 vendor/eac_cli/spec/lib/eac_cli/definition/alternative_spec.rb
ehbrs-tools-0.18.0 vendor/eac_cli/spec/lib/eac_cli/definition/alternative_spec.rb
avm-tools-0.87.0 vendor/eac_cli/spec/lib/eac_cli/definition/alternative_spec.rb
ehbrs-tools-0.17.0 vendor/eac_cli/spec/lib/eac_cli/definition/alternative_spec.rb
avm-tools-0.86.0 vendor/eac_cli/spec/lib/eac_cli/definition/alternative_spec.rb
avm-tools-0.85.1 vendor/eac_cli/spec/lib/eac_cli/definition/alternative_spec.rb
avm-tools-0.85.0 vendor/eac_cli/spec/lib/eac_cli/definition/alternative_spec.rb
ehbrs-tools-0.16.5 vendor/eac_cli/spec/lib/eac_cli/definition/alternative_spec.rb
avm-tools-0.84.0 vendor/eac_cli/spec/lib/eac_cli/definition/alternative_spec.rb
avm-tools-0.83.0 vendor/eac_cli/spec/lib/eac_cli/definition/alternative_spec.rb
ehbrs-tools-0.16.4 vendor/eac_cli/spec/lib/eac_cli/definition/alternative_spec.rb
avm-tools-0.82.1 vendor/eac_cli/spec/lib/eac_cli/definition/alternative_spec.rb
avm-tools-0.82.0 vendor/eac_cli/spec/lib/eac_cli/definition/alternative_spec.rb
avm-tools-0.81.0 vendor/eac_cli/spec/lib/eac_cli/definition/alternative_spec.rb