Sha256: 0e3024806c10380089306e059d785429700b411f9c95ae446327e09c493df8df

Contents?: true

Size: 693 Bytes

Versions: 12

Compression:

Stored size: 693 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

12 entries across 12 versions & 1 rubygems

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