Sha256: 9b2af57a0b5287ed8805ea5bf57a0f82c8d99ad256e0d6ae85f61a2c69edc151

Contents?: true

Size: 687 Bytes

Versions: 2

Compression:

Stored size: 687 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", "30: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_limit]) { should == 30 }
  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.1 spec/fwd/cli_spec.rb
fwd-0.3.0 spec/fwd/cli_spec.rb