Sha256: 80906699dcb619eaf85aaca813187b18860d9f05b23dd82ad08c7c22120c1106

Contents?: true

Size: 695 Bytes

Versions: 14

Compression:

Stored size: 695 Bytes

Contents

# frozen_string_literal: true

require 'spec_helper'

describe Evostream::CLI::Argument::Host, type: :cli do
  before { ARGV.push('--server') }

  after { ARGV.pop }

  let(:runner) { Evostream::Runner.new }

  context 'when argument with host dont given' do
    let(:out) { /Command is invalid !!/ }
    let(:code) { 101 }

    include_examples 'argument exit'
    include_examples 'argument output'
  end

  context 'when argument with host given', broken: true do
    before { ARGV.push('127.0.0.1') }

    after { ARGV.pop }

    let(:out) { /Connection to Evostream REFUSED !!/ }
    let(:code) { 201 }

    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/host_spec.rb
evostream-event-2.0.3.pre.1265906291 spec/evostream/cli/argument/host_spec.rb
evostream-event-2.0.3.pre.1265756691 spec/evostream/cli/argument/host_spec.rb
evostream-event-2.0.3.pre.1265752332 spec/evostream/cli/argument/host_spec.rb
evostream-event-2.0.2 spec/evostream/cli/argument/host_spec.rb
evostream-event-2.0.2.pre.994185738 spec/evostream/cli/argument/host_spec.rb
evostream-event-2.0.0.pre.994170151 spec/evostream/cli/argument/host_spec.rb
evostream-event-2.0.0.pre.994165179 spec/evostream/cli/argument/host_spec.rb
evostream-event-2.0.0.pre.994159616 spec/evostream/cli/argument/host_spec.rb
evostream-event-2.0.0.pre.856454391 spec/evostream/cli/argument/host_spec.rb
evostream-event-2.0.0.pre.856447460 spec/evostream/cli/argument/host_spec.rb
evostream-event-2.0.0.pre.856441003 spec/evostream/cli/argument/host_spec.rb
evostream-event-2.0.0.pre.816370746 spec/evostream/cli/argument/host_spec.rb
evostream-event-2.0.0.pre.809444619 spec/evostream/cli/argument/host_spec.rb