From 752da3db34da20d8e243081ee9967f2fd29094e9 Mon Sep 17 00:00:00 2001 From: James Coglan Date: Mon, 21 May 2012 19:46:38 +0100 Subject: [PATCH] Remove an expensive test. --- spec/faye/websocket/hybi_parser_spec.rb | 7 ------- 1 file changed, 7 deletions(-) diff --git a/spec/faye/websocket/hybi_parser_spec.rb b/spec/faye/websocket/hybi_parser_spec.rb index 53f13ff..b569f4f 100644 --- a/spec/faye/websocket/hybi_parser_spec.rb +++ b/spec/faye/websocket/hybi_parser_spec.rb @@ -127,13 +127,6 @@ describe Faye::WebSocket::HybiParser do bytes(@parser.frame message).should == [0x81, 0x7e, 0x00, 0xc8] + [0x48, 0x65, 0x6c, 0x6c, 0x6f] * 40 end - it "encodes long strings using extra length bytes" do - message = "Hello" * 13108 - bytes(@parser.frame message).should == [0x81, 0x7f] + - [0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x04] + - [0x48, 0x65, 0x6c, 0x6c, 0x6f] * 13108 - end - it "encodes close frames with an error code" do frame = @parser.frame "Hello", :close, 1002 bytes(frame).should == [0x88, 0x07, 0x03, 0xea, 0x48, 0x65, 0x6c, 0x6c, 0x6f]