Sha256: 1e2b7d00dc60ca01eeb3ac33031dd779d8c8b3a7c17af8c8ae99c7b111805245

Contents?: true

Size: 399 Bytes

Versions: 6

Compression:

Stored size: 399 Bytes

Contents

require 'test/unit'
require 'remote_syslog/message_generator'

class MessageGeneratorTest < Test::Unit::TestCase
  def test_prepend_prepend
    socket = []
    def socket.write(packet)
      self << packet
    end
    generator = RemoteSyslog::MessageGenerator.new(socket, {:prepend => 'crazy_prefix '})
    generator.transmit("tag", "message")
    assert_match /crazy_prefix /, socket[0]
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
remote_syslog-1.6.15 test/unit/message_generator_test.rb
remote_syslog-1.6.14 test/unit/message_generator_test.rb
remote_syslog-1.6.13 test/unit/message_generator_test.rb
remote_syslog-1.6.12 test/unit/message_generator_test.rb
remote_syslog-1.6.11 test/unit/message_generator_test.rb
remote_syslog-1.6.10 test/unit/message_generator_test.rb