Sha256: c0da132894bcb3b3920d38b03593935c146fe276e4d500df32d41270eaa20e2e

Contents?: true

Size: 675 Bytes

Versions: 27

Compression:

Stored size: 675 Bytes

Contents

require 'spec_helper'

RSpec.describe RubySMB::Fscc::FileInformation::FileAlignmentInformation 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_ALIGNMENT_INFORMATION
  end

  subject(:struct) { described_class.new }

  it { should respond_to :alignment_requirement }

  it 'is little endian' do
    expect(described_class.fields.instance_variable_get(:@hints)[:endian]).to eq :little
  end

  it 'tracks the alignment requirement in a Uint32 field' do
    expect(struct.alignment_requirement).to be_a BinData::Uint32le
  end

end

Version data entries

27 entries across 27 versions & 1 rubygems

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