Sha256: eaec28db18600a6df656f0ab4b0b1a130482329b8760a5bfbfa96f01a025ae1d
Contents?: true
Size: 769 Bytes
Versions: 63
Compression:
Stored size: 769 Bytes
Contents
require 'spec_helper' RSpec.describe RubySMB::Fscc::FileInformation::FileDispositionInformation do it 'references the correct class level' do expect(described_class).to be_const_defined(:CLASS_LEVEL) expect(described_class::CLASS_LEVEL).to be RubySMB::Fscc::FileInformation::FILE_DISPOSITION_INFORMATION end subject(:struct) { described_class.new } it { should respond_to :delete_pending } it 'is little endian' do expect(described_class.fields.instance_variable_get(:@hints)[:endian]).to eq :little end describe '#delete_pending' do it 'is a 8-bit field' do expect(struct.delete_pending).to be_a BinData::Uint8 end it 'should have a default value of 0' do expect(struct.delete_pending).to eq 0 end end end
Version data entries
63 entries across 63 versions & 1 rubygems