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