Sha256: a45e7fb42ca35b84a53be8692c9d47ccfd9e699ecbfc72e0439c626a22f3a706

Contents?: true

Size: 505 Bytes

Versions: 8

Compression:

Stored size: 505 Bytes

Contents

# encoding: binary
# frozen_string_literal: true

require 'spec_helper'

RSpec.describe 'Outgoing common frame' do
  subject { WebSocket::Frame::Outgoing.new }

  it 'is version 13' do
    expect(subject.version).to be 13
  end

  it 'has no errors' do
    expect(subject.error?).to be false
  end

  it 'raises error on invalid version' do
    subject = WebSocket::Frame::Incoming.new(version: 70)
    expect(subject.error?).to be true
    expect(subject.error).to be :unknown_protocol_version
  end
end

Version data entries

8 entries across 8 versions & 3 rubygems

Version Path
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/websocket-1.2.10/spec/frame/outgoing_common_spec.rb
websocket-1.2.11 spec/frame/outgoing_common_spec.rb
websocket-1.2.10 spec/frame/outgoing_common_spec.rb
tdiary-5.2.3 vendor/bundle/ruby/3.1.0/gems/websocket-1.2.9/spec/frame/outgoing_common_spec.rb
tdiary-5.2.2 vendor/bundle/ruby/3.1.0/gems/websocket-1.2.9/spec/frame/outgoing_common_spec.rb
websocket-1.2.9 spec/frame/outgoing_common_spec.rb
websocket-1.2.8 spec/frame/outgoing_common_spec.rb
websocket-1.2.7 spec/frame/outgoing_common_spec.rb