search for: tickserver

Displaying 1 result from an estimated 1 matches for "tickserver".

2006 Dec 15
5
Testing event driven Socket classes
Ok, here is the class, I want to Unit Test, its part of a large app and is based on EventMachine library. I want to mock the class TickServer ( i.e not stub it) . Since in actual scenario, you can''t do this on this class: @server = TickServer.new # will toss an exception at your face you must initialize the server like this: EventMachine.run { EventMachine.start_server("192.168.2.252",6200,TickServer) do |conn|...