spec/spec_helper.rb in logstash-logger-0.6.2 vs spec/spec_helper.rb in logstash-logger-0.7.0

- old
+ new

@@ -41,7 +41,24 @@ let(:unix_device) { LogStashLogger::Device.new(type: :unix, path: '/tmp/logstash') } let(:file) { Tempfile.new('test') } 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(: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(: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} } end