Sha256: ecc4ad616e8ad7d360e0d59a811495d229360397cfe487a1a074fb57d37e2f1d
Contents?: true
Size: 784 Bytes
Versions: 10
Compression:
Stored size: 784 Bytes
Contents
require 'spec_helper' RSpec.describe RubySMB::SMB2::Packet::TreeDisconnectRequest do subject(:packet) { described_class.new } it { is_expected.to respond_to :smb2_header } it { is_expected.to respond_to :structure_size } it 'is little endian' do expect(described_class.fields.instance_variable_get(:@hints)[:endian]).to eq :little end describe '#smb2_header' do subject(:header) { packet.smb2_header } it 'is a standard SMB Header' do expect(header).to be_a RubySMB::SMB2::SMB2Header end it 'should have the command set to SMB_COM_NEGOTIATE' do expect(header.command).to eq RubySMB::SMB2::Commands::TREE_DISCONNECT end it 'should not have the response flag set' do expect(header.flags.reply).to eq 0 end end end
Version data entries
10 entries across 10 versions & 1 rubygems