Sha256: 3dc79f0565ef0a252b06e7e35bf115a7b49e684a11e68e2c9d01da8abcc73cee
Contents?: true
Size: 762 Bytes
Versions: 14
Compression:
Stored size: 762 Bytes
Contents
RSpec.describe RubySMB::SMB1::DataBlock do subject(:data_block) { described_class.new } it { is_expected.to respond_to :byte_count } describe 'byte_count' do it 'should be a 16-bit field per the SMB spec' do expect(data_block.byte_count).to be_a BinData::Uint16le end it 'should equal the size of the rest of the block in bytes' do remaining_size = data_block.do_num_bytes - 2 expect(data_block.byte_count).to eq remaining_size end end describe 'class method #calculate_byte_count' do it 'always returns 0' do expect(described_class.calculate_byte_count).to eq 0 end end it 'is little endian' do expect(described_class.fields.instance_variable_get(:@hints)[:endian]).to eq :little end end
Version data entries
14 entries across 14 versions & 1 rubygems