Sha256: ba36c7317f8adf2e6f84fa973e4132c0966fe1c1179a36d4ad13da856f31e76b

Contents?: true

Size: 400 Bytes

Versions: 27

Compression:

Stored size: 400 Bytes

Contents

require 'spec_helper'

RSpec.describe RubySMB::Fscc::FileInformation do

  describe '#name' do
    it 'maps constant names to their value' do
      expect(described_class.name(RubySMB::Fscc::FileInformation::FILE_DIRECTORY_INFORMATION)).to eq :FILE_DIRECTORY_INFORMATION
    end

    it 'returns nil for values that do not exist' do
      expect(described_class.name(-1)).to be_nil
    end
  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_spec.rb
ruby_smb-3.3.11 spec/lib/ruby_smb/fscc/file_information_spec.rb
ruby_smb-3.3.10 spec/lib/ruby_smb/fscc/file_information_spec.rb
ruby_smb-3.3.9 spec/lib/ruby_smb/fscc/file_information_spec.rb
ruby_smb-3.3.7 spec/lib/ruby_smb/fscc/file_information_spec.rb
ruby_smb-3.3.6 spec/lib/ruby_smb/fscc/file_information_spec.rb
ruby_smb-3.3.5 spec/lib/ruby_smb/fscc/file_information_spec.rb
ruby_smb-3.3.4 spec/lib/ruby_smb/fscc/file_information_spec.rb
ruby_smb-3.3.3 spec/lib/ruby_smb/fscc/file_information_spec.rb
ruby_smb-3.3.2 spec/lib/ruby_smb/fscc/file_information_spec.rb
ruby_smb-3.3.1 spec/lib/ruby_smb/fscc/file_information_spec.rb
ruby_smb-3.3.0 spec/lib/ruby_smb/fscc/file_information_spec.rb
ruby_smb-3.2.8 spec/lib/ruby_smb/fscc/file_information_spec.rb
ruby_smb-3.2.7 spec/lib/ruby_smb/fscc/file_information_spec.rb
ruby_smb-3.2.6 spec/lib/ruby_smb/fscc/file_information_spec.rb
ruby_smb-3.2.5 spec/lib/ruby_smb/fscc/file_information_spec.rb
ruby_smb-3.2.4 spec/lib/ruby_smb/fscc/file_information_spec.rb
ruby_smb-3.2.3 spec/lib/ruby_smb/fscc/file_information_spec.rb
ruby_smb-3.2.2 spec/lib/ruby_smb/fscc/file_information_spec.rb
ruby_smb-3.2.1 spec/lib/ruby_smb/fscc/file_information_spec.rb