Sha256: ba04a54c134ff8cf77c591be5482dd770aa4077d0a9a3db88393645bc4bc82ce
Contents?: true
Size: 733 Bytes
Versions: 14
Compression:
Stored size: 733 Bytes
Contents
shared_examples 'message with a header' do describe 'header' do describe 'length' do let(:field) { bytes[0..3] } it 'serializes the length' do expect(field).to be_int32(bytes.size) end end describe 'request id' do let(:field) { bytes[4..7] } it 'serializes the request id' do expect(field).to be_int32(message.request_id) end end describe 'response to' do let(:field) { bytes[8..11] } it 'serializes the response to' do expect(field).to be_int32(0) end end describe 'op code' do let(:field) { bytes[12..15] } it 'serializes the op code' do expect(field).to be_int32(opcode) end end end end
Version data entries
14 entries across 14 versions & 1 rubygems