mirror of
https://github.com/faye/websocket-driver-ruby.git
synced 2025-11-01 13:59:38 +00:00
Fix a weird encoding-related test problem on MRI 2.0.0.
This commit is contained in:
@@ -180,10 +180,8 @@ describe WebSocket::Draft76Protocol do
|
||||
|
||||
describe :close do
|
||||
it "writes a close message to the socket" do
|
||||
frame = "\xFF\x00"
|
||||
frame.force_encoding("ASCII-8BIT") if frame.respond_to?(:force_encoding)
|
||||
socket.should_receive(:write).with(frame)
|
||||
protocol.close
|
||||
@bytes.should == [0xFF, 0x00]
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user