test/teststrap.rb in pusher-client-0.1.1 vs test/teststrap.rb in pusher-client-0.2.0

- old
+ new

@@ -34,11 +34,10 @@ @connection = TestConnection.new @global_channel.dispatch('pusher:connection_established', {'socket_id' => '123abc'}) end @connection_thread.run @connection_thread.join unless async - sleep(1) return self end def simulate_received(event_name, event_data, channel_name) send_local_event(event_name, event_data, channel_name) @@ -46,9 +45,12 @@ end class TestConnection def send(payload) PusherClient.logger.test("SEND: #{payload}") + end + + def close end end PusherClient.logger = TestLogger.new('test.log')