Sha256: b3cb5d08bc5eaa7bbd8a1fba4e08742ac6b0174f5c59fa1872cb6f29c6f73f1b

Contents?: true

Size: 807 Bytes

Versions: 4

Compression:

Stored size: 807 Bytes

Contents

RSpec.describe RubySMB::Nbss::SessionRequest do
  subject(:session_request) { described_class.new }

  it { is_expected.to respond_to :session_header }
  it { is_expected.to respond_to :called_name }
  it { is_expected.to respond_to :calling_name }

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

  describe '#session_header' do
    it 'is a SessionHeader field' do
      expect(session_request.session_header).to be_a RubySMB::Nbss::SessionHeader
    end
  end

  describe '#called_name' do
    it 'is a string' do
      expect(session_request.called_name).to be_a BinData::String
    end
  end

  describe '#calling_name' do
    it 'is a string' do
      expect(session_request.calling_name).to be_a BinData::String
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ruby_smb-0.0.22 spec/lib/ruby_smb/nbss/session_request_spec.rb
ruby_smb-0.0.21 spec/lib/ruby_smb/nbss/session_request_spec.rb
ruby_smb-0.0.20 spec/lib/ruby_smb/nbss/session_request_spec.rb
ruby_smb-0.0.19 spec/lib/ruby_smb/nbss/session_request_spec.rb