Sha256: fc95e06f44622cc759e1245572a25c160d9b419dc5f4ba91bbacd8747534eeb9

Contents?: true

Size: 555 Bytes

Versions: 12

Compression:

Stored size: 555 Bytes

Contents

# frozen_string_literal: true

require 'spec_helper'

describe Evostream::CLI::Argument::Command do
  let(:runner) { Evostream::Runner.new }
  let(:out) { /Commands :\n^  - .*/ }
  let(:code) { 0 }

  context 'when short argument' do
    before { ARGV.push('-c') }
    after { ARGV.pop }

    include_examples 'argument exit'
    include_examples 'argument output'
  end

  context 'when long argument' do
    before { ARGV.push('--commands') }
    after { ARGV.pop }

    include_examples 'argument exit'
    include_examples 'argument output'
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
evostream-event-1.0.3 spec/cli/argument/command_spec.rb
evostream-event-1.0.3.pre.95 spec/cli/argument/command_spec.rb
evostream-event-1.0.3.pre.93 spec/cli/argument/command_spec.rb
evostream-event-1.0.3.pre.91 spec/cli/argument/command_spec.rb
evostream-event-1.0.3.pre.83 spec/cli/argument/command_spec.rb
evostream-event-1.0.2 spec/cli/argument/command_spec.rb
evostream-event-1.0.2.pre.75 spec/cli/argument/command_spec.rb
evostream-event-1.0.2.pre.74 spec/cli/argument/command_spec.rb
evostream-event-1.0.1 spec/cli/argument/command_spec.rb
evostream-event-1.0.1.pre.72 spec/cli/argument/command_spec.rb
evostream-event-1.0.0 spec/cli/argument/command_spec.rb
evostream-event-1.0.0.pre.69 spec/cli/argument/command_spec.rb