Sha256: 082cca1167602d7557386466793c48875ed308bd5f1f347a812d21ff96ba3059

Contents?: true

Size: 649 Bytes

Versions: 14

Compression:

Stored size: 649 Bytes

Contents

# frozen_string_literal: true

require 'spec_helper'

describe Evostream::CLI::Argument::Version do
  let(:runner) { Evostream::Runner.new }
  let(:out) { /##################################\n^# Ruby --.*\n^# Evostream::Event -- .*\n##################################/m }
  let(:code) { 0 }

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

    after { ARGV.pop }

    include_examples 'argument exit'
    include_examples 'argument output'
  end

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

    after { ARGV.pop }

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

Version data entries

14 entries across 14 versions & 1 rubygems

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