Skip to content

Commit

Permalink
match encoding for ruby 2.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
godfat committed May 11, 2016
1 parent e8ccd0c commit 98e0f2f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -1158,13 +1158,13 @@ run Tank.new

<!---
GET /echo
sock.string.should.eq <<-HTTP.chomp
sock.string.should.eq <<-HTTP.chomp.force_encoding('ASCII-8BIT')
HTTP/1.1 101 Switching Protocols\r
Upgrade: websocket\r
Connection: Upgrade\r
Sec-WebSocket-Accept: Kfh9QIsMVZcl6xEPYxPHzW8SZ8w=\r
\r
\x81\u0003Hi!
\x81\x03Hi!
HTTP
[200, {}, ['']]
-->
Expand Down
4 changes: 2 additions & 2 deletions test/test_websocket.rb
Expand Up @@ -32,13 +32,13 @@ def create_env
would 'ping pong' do
env, sock = create_env
app.call(env)
sock.string.should.eq <<-HTTP.chomp
sock.string.should.eq <<-HTTP.chomp.force_encoding('ASCII-8BIT')
HTTP/1.1 101 Switching Protocols\r
Upgrade: websocket\r
Connection: Upgrade\r
Sec-WebSocket-Accept: Kfh9QIsMVZcl6xEPYxPHzW8SZ8w=\r
\r
\x81\u0004ping\x81\u0004pong\x81\u0004pong
\x81\x04ping\x81\x04pong\x81\x04pong
HTTP
end
end

0 comments on commit 98e0f2f

Please sign in to comment.