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