Sha256: 0dc3e4a86ff371e45cb7d816704dfc2d607f26d6a58795786b9c3b6b0f32a5bb
Contents?: true
Size: 565 Bytes
Versions: 6
Compression:
Stored size: 565 Bytes
Contents
require 'helper' class TestRubyUdpSender < Test::Unit::TestCase context "with ruby sender" do setup do @host, @port = 'localhost', 12201 @sender = GELF::RubyUdpSender.new('localhost', 12201) @datagrams = %w(d1 d2 d3) end context "send_datagrams" do setup do @sender.send_datagrams(@datagrams) end before_should "be called with 3 times correct parameters" do UDPSocket.any_instance.expects(:send).times(3).with(instance_of(String), 0, @host, @port).returns(@datagrams) end end end end
Version data entries
6 entries across 6 versions & 1 rubygems