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

Version Path
websocket-rack-noodles-0.4.3 spec/support/masked_messages.rb
websocket-rack-noodles-0.4.2 spec/support/masked_messages.rb
websocket-rack-noodles-0.4.1 spec/support/masked_messages.rb
websocket-rack-noodles-0.4.0 spec/support/masked_messages.rb
websocket-rack-0.4.0 spec/support/masked_messages.rb
websocket-rack-0.3.3 spec/support/masked_messages.rb