spec/support/all_drafts.rb in websocket-rack-0.3.0 vs spec/support/all_drafts.rb in websocket-rack-0.3.1
- old
+ new
@@ -32,10 +32,10 @@
conn.write(handshake_request)
conn.read(handshake_response.length)
conn.write(message)
end
it "should call 'on_message' on connection sending data with proper env and message" do
- TestApp.any_instance.expects(:on_message).once.with { |env, message| env.class == Hash && !env.keys.empty? && message == 'some message' }
+ TestApp.any_instance.expects(:on_message).once.with { |env, message| env.class == Hash && !env.keys.empty? && message == 'Hello' }
conn = new_server_connection
conn.write(handshake_request)
conn.read(handshake_response.length)
conn.write(message)
end
\ No newline at end of file