Sha256: 8d8d5452b4ac22108e6944d9e127c74308e9613f06c8863f36345223b6900d00
Contents?: true
Size: 645 Bytes
Versions: 2
Compression:
Stored size: 645 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", ] 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(:core) { should be_instance_of(Fwd) } end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
fwd-0.3.3 | spec/fwd/cli_spec.rb |
fwd-0.3.2 | spec/fwd/cli_spec.rb |