Fix a weird encoding-related test problem on MRI 2.0.0.

This commit is contained in:
James Coglan
2013-04-20 13:04:36 +01:00
parent 1be1a33eb1
commit 520fb66bf5
+1 -3
View File
@@ -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