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

Version Path
ruby_smb-3.3.12 spec/lib/ruby_smb/fscc/file_information/file_disposition_information_spec.rb
ruby_smb-3.3.11 spec/lib/ruby_smb/fscc/file_information/file_disposition_information_spec.rb
ruby_smb-3.3.10 spec/lib/ruby_smb/fscc/file_information/file_disposition_information_spec.rb
ruby_smb-3.3.9 spec/lib/ruby_smb/fscc/file_information/file_disposition_information_spec.rb
ruby_smb-3.3.7 spec/lib/ruby_smb/fscc/file_information/file_disposition_information_spec.rb
ruby_smb-3.3.6 spec/lib/ruby_smb/fscc/file_information/file_disposition_information_spec.rb
ruby_smb-3.3.5 spec/lib/ruby_smb/fscc/file_information/file_disposition_information_spec.rb
ruby_smb-3.3.4 spec/lib/ruby_smb/fscc/file_information/file_disposition_information_spec.rb
ruby_smb-3.3.3 spec/lib/ruby_smb/fscc/file_information/file_disposition_information_spec.rb
ruby_smb-3.3.2 spec/lib/ruby_smb/fscc/file_information/file_disposition_information_spec.rb
ruby_smb-3.3.1 spec/lib/ruby_smb/fscc/file_information/file_disposition_information_spec.rb
ruby_smb-3.3.0 spec/lib/ruby_smb/fscc/file_information/file_disposition_information_spec.rb
ruby_smb-3.2.8 spec/lib/ruby_smb/fscc/file_information/file_disposition_information_spec.rb
ruby_smb-3.2.7 spec/lib/ruby_smb/fscc/file_information/file_disposition_information_spec.rb
ruby_smb-3.2.6 spec/lib/ruby_smb/fscc/file_information/file_disposition_information_spec.rb
ruby_smb-3.2.5 spec/lib/ruby_smb/fscc/file_information/file_disposition_information_spec.rb
ruby_smb-3.2.4 spec/lib/ruby_smb/fscc/file_information/file_disposition_information_spec.rb
ruby_smb-3.2.3 spec/lib/ruby_smb/fscc/file_information/file_disposition_information_spec.rb
ruby_smb-3.2.2 spec/lib/ruby_smb/fscc/file_information/file_disposition_information_spec.rb
ruby_smb-3.2.1 spec/lib/ruby_smb/fscc/file_information/file_disposition_information_spec.rb