Sha256: b445d71e7078bdecc5b42da54e800e1aac1d426ae5c6145f0c2595bcb0104bbe
Contents?: true
Size: 448 Bytes
Versions: 6
Compression:
Stored size: 448 Bytes
Contents
shared_examples_for 'draft with masked messages' do it "should call 'on_message' on connection sending masked data with proper env and message" do 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) timeout(1) { conn.read(handshake_response.length) } conn.write(masked_message) end end
Version data entries
6 entries across 6 versions & 2 rubygems