Sha256: de5048759997ac520eba6d9003c2e3952ad2b5750a5cbe8d15669e39c4a94b64
Contents?: true
Size: 768 Bytes
Versions: 1
Compression:
Stored size: 768 Bytes
Contents
require 'spec_helper' describe Fwd::CLI do subject do described_class.new [ "--path", root.to_s, "--prefix", "prefix", "--bind", "tcp://127.0.0.1:7289", "--forward", "tcp://1.2.3.4:1234,tcp://1.2.3.5:1235", "--flush", "1200:90", "--log", "/dev/null", "--verbose", ] end it { should be_a(Hash) } its([:path]) { should == root.to_s } its([:prefix]) { should == "prefix" } its([:bind]) { should == "tcp://127.0.0.1:7289" } its([:forward]) { should == ["tcp://1.2.3.4:1234", "tcp://1.2.3.5:1235"] } its([:flush_rate]) { should == 1200 } its([:flush_interval]) { should == 90 } its([:log]) { should == "/dev/null" } its([:log_level]) { should == 0 } its(:core) { should be_instance_of(Fwd) } end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fwd-0.4.0 | spec/fwd/cli_spec.rb |