Sha256: c211e020a64384fb16e2a1983d3c2db267a09467e419eb8f29aa52bd82ebd532

Contents?: true

Size: 335 Bytes

Versions: 13

Compression:

Stored size: 335 Bytes

Contents

require 'logstash-logger'

describe LogStashLogger::Device::Socket do
  include_context 'device'

  it "defaults host to 0.0.0.0" do
    expect(device_with_port.host).to eq("0.0.0.0")
  end

  context "when port is not specified" do
    it "raises an exception" do
      expect { described_class.new }.to raise_error
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
logstash-logger-0.12.0 spec/device/socket_spec.rb
logstash-logger-0.11.0 spec/device/socket_spec.rb
logstash-logger-0.10.3 spec/device/socket_spec.rb
logstash-logger-0.10.2 spec/device/socket_spec.rb
logstash-logger-0.10.1 spec/device/socket_spec.rb
logstash-logger-0.10.0 spec/device/socket_spec.rb
logstash-logger-0.9.0 spec/device/socket_spec.rb
logstash-logger-0.8.0 spec/device/socket_spec.rb
logstash-logger-0.7.0 spec/device/socket_spec.rb
logstash-logger-0.6.2 spec/device/socket_spec.rb
logstash-logger-0.6.1 spec/device/socket_spec.rb
logstash-logger-0.6.0 spec/device/socket_spec.rb
logstash-logger-0.5.0 spec/device/socket_spec.rb