spec/spec_helper.rb in logstash-logger-0.7.0 vs spec/spec_helper.rb in logstash-logger-0.8.0
- old
+ new
@@ -44,21 +44,24 @@
let(:file_device) { LogStashLogger::Device.new(type: :file, path: file.path)}
let(:io_device) { LogStashLogger::Device.new(type: :io, io: io)}
let(:redis_device) { LogStashLogger::Device.new(type: :redis, sync: true) }
+ let(:multi_delegator_device) { LogStashLogger::Device.new([{type: :stdout}, {type: :io, io: io}]) }
let(:udp_uri) { "udp://localhost:5228" }
let(:tcp_uri) { "tcp://localhost:5229" }
let(:unix_uri) { "unix:///some/path/to/socket" }
let(:file_uri) { "file://#{file.path}" }
let(:redis_uri) { "redis://localhost:6379" }
let(:stdout_uri) { "stdout://localhost" }
+ let(:stderr_uri) { "stderr://localhost" }
let(:invalid_uri_config) { {uri: "non parsable uri"} }
let(:udp_uri_config) { {uri: udp_uri} }
let(:tcp_uri_config) { {uri: tcp_uri} }
let(:unix_uri_config) { {uri: unix_uri} }
let(:file_uri_config) { {uri: file_uri} }
let(:redis_uri_config) { {uri: redis_uri} }
let(:stdout_uri_config) { {uri: stdout_uri} }
+ let(:stderr_uri_config) { {uri: stderr_uri} }
end