spec/frame/incoming_03_spec.rb in websocket-1.2.4 vs spec/frame/incoming_03_spec.rb in websocket-1.2.5

- old
+ new

@@ -1,16 +1,17 @@ # encoding: binary + require 'spec_helper' RSpec.describe 'Incoming frame draft 03' do + subject { frame } let(:version) { 3 } let(:frame) { WebSocket::Frame::Incoming.new(version: version, data: encoded_text) } let(:encoded_text) { nil } let(:decoded_text) { nil } let(:frame_type) { nil } let(:error) { nil } - subject { frame } it_should_behave_like 'valid_incoming_frame' context 'should properly decode close frame' do let(:encoded_text) { "\x01\x05" + decoded_text } @@ -52,10 +53,10 @@ it_should_behave_like 'valid_incoming_frame' end context 'should properly decode text frame in between of continuation' do let(:encoded_text) { "\x84\x03Hel\x03\x03abc\x00\x02lo" } - let(:frame_type) { [:pong, :text] } + let(:frame_type) { %i(pong text) } let(:decoded_text) { %w(abc Hello) } it_should_behave_like 'valid_incoming_frame' end