Sha256: 61f0160f41d3e17d9ab509d31e011b146b7b1f0588f325876a859fb2c287a218

Contents?: true

Size: 556 Bytes

Versions: 14

Compression:

Stored size: 556 Bytes

Contents

# frozen_string_literal: true

require 'spec_helper'

describe Evostream::CLI::Argument::Help do
  after { ARGV.pop }

  let(:runner) { Evostream::Runner.new }
  let(:out) do
    File.read(File.join(__dir__, '..', '..', '..', '..',
                        'lib', 'evostream', 'cli', 'option', 'help'))
  end
  let(:code) { 0 }

  context 'when short argument' do
    before { ARGV.push('-h') }

    include_examples 'argument help'
  end

  context 'when long argument' do
    before { ARGV.push('--help') }

    include_examples 'argument help'
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
evostream-event-2.0.3 spec/evostream/cli/argument/help_spec.rb
evostream-event-2.0.3.pre.1265906291 spec/evostream/cli/argument/help_spec.rb
evostream-event-2.0.3.pre.1265756691 spec/evostream/cli/argument/help_spec.rb
evostream-event-2.0.3.pre.1265752332 spec/evostream/cli/argument/help_spec.rb
evostream-event-2.0.2 spec/evostream/cli/argument/help_spec.rb
evostream-event-2.0.2.pre.994185738 spec/evostream/cli/argument/help_spec.rb
evostream-event-2.0.0.pre.994170151 spec/evostream/cli/argument/help_spec.rb
evostream-event-2.0.0.pre.994165179 spec/evostream/cli/argument/help_spec.rb
evostream-event-2.0.0.pre.994159616 spec/evostream/cli/argument/help_spec.rb
evostream-event-2.0.0.pre.856454391 spec/evostream/cli/argument/help_spec.rb
evostream-event-2.0.0.pre.856447460 spec/evostream/cli/argument/help_spec.rb
evostream-event-2.0.0.pre.856441003 spec/evostream/cli/argument/help_spec.rb
evostream-event-2.0.0.pre.816370746 spec/evostream/cli/argument/help_spec.rb
evostream-event-2.0.0.pre.809444619 spec/evostream/cli/argument/help_spec.rb