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-2.0.9 spec/lib/ruby_smb/fscc/file_information/file_disposition_information_spec.rb
ruby_smb-2.0.8 spec/lib/ruby_smb/fscc/file_information/file_disposition_information_spec.rb
ruby_smb-2.0.7 spec/lib/ruby_smb/fscc/file_information/file_disposition_information_spec.rb
ruby_smb-2.0.6 spec/lib/ruby_smb/fscc/file_information/file_disposition_information_spec.rb
ruby_smb-2.0.5 spec/lib/ruby_smb/fscc/file_information/file_disposition_information_spec.rb
ruby_smb-2.0.4 spec/lib/ruby_smb/fscc/file_information/file_disposition_information_spec.rb
ruby_smb-2.0.3 spec/lib/ruby_smb/fscc/file_information/file_disposition_information_spec.rb
ruby_smb-2.0.2 spec/lib/ruby_smb/fscc/file_information/file_disposition_information_spec.rb
ruby_smb-2.0.1 spec/lib/ruby_smb/fscc/file_information/file_disposition_information_spec.rb
ruby_smb-2.0.0 spec/lib/ruby_smb/fscc/file_information/file_disposition_information_spec.rb
ruby_smb-1.1.0 spec/lib/ruby_smb/fscc/file_information/file_disposition_information_spec.rb
ruby_smb-1.0.5 spec/lib/ruby_smb/fscc/file_information/file_disposition_information_spec.rb
ruby_smb-1.0.4 spec/lib/ruby_smb/fscc/file_information/file_disposition_information_spec.rb
ruby_smb-1.0.3 spec/lib/ruby_smb/fscc/file_information/file_disposition_information_spec.rb
ruby_smb-1.0.2 spec/lib/ruby_smb/fscc/file_information/file_disposition_information_spec.rb
ruby_smb-1.0.1 spec/lib/ruby_smb/fscc/file_information/file_disposition_information_spec.rb
ruby_smb-1.0.0 spec/lib/ruby_smb/fscc/file_information/file_disposition_information_spec.rb
ruby_smb-0.0.24 spec/lib/ruby_smb/fscc/file_information/file_disposition_information_spec.rb
ruby_smb-0.0.23 spec/lib/ruby_smb/fscc/file_information/file_disposition_information_spec.rb
ruby_smb-0.0.22 spec/lib/ruby_smb/fscc/file_information/file_disposition_information_spec.rb