spec/spec_helper.rb in hara-0.1.0 vs spec/spec_helper.rb in hara-0.2.0

- old
+ new

@@ -1,11 +1,15 @@ require 'hara/base' -require 'json' - Celluloid.logger = nil +class FayeHandshake + def headers_downcased + {'host' => 'localhost:8080'} + end +end + class FayeSocket attr_accessor :remote_ip def initialize @client_messages = [] @@ -18,21 +22,13 @@ def close @alive = false end - def read - @server_messages.shift - end - - def << message + def send message @client_messages << message end def client_read @client_messages.shift - end - - def client_send message - @server_messages << message end end