Sha256: 5f447cc39c7ef97a105fa18baeff485df3d9982161c571863770b548f30187fc

Contents?: true

Size: 382 Bytes

Versions: 6

Compression:

Stored size: 382 Bytes

Contents

RSpec.describe RubySMB::Field::ExtendedAttributeFlag do
  subject(:flag) { described_class.new }

  it { is_expected.to respond_to :file_need_ea }


  describe 'file_need_ea' do
    it 'should be a 1-bit field per the SMB spec' do
      expect(flag.file_need_ea).to be_a BinData::Bit1
    end


    it_behaves_like 'bit field with one flag set', :file_need_ea, 'C', 0x80
  end

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
ruby_smb-0.0.18 spec/lib/ruby_smb/field/extended_attribute_flag_spec.rb
ruby_smb-0.0.17 spec/lib/ruby_smb/field/extended_attribute_flag_spec.rb
ruby_smb-0.0.16 spec/lib/ruby_smb/field/extended_attribute_flag_spec.rb
ruby_smb-0.0.15 spec/lib/ruby_smb/field/extended_attribute_flag_spec.rb
ruby_smb-0.0.14 spec/lib/ruby_smb/field/extended_attribute_flag_spec.rb
ruby_smb-0.0.13 spec/lib/ruby_smb/field/extended_attribute_flag_spec.rb