Sha256: 78b64a9aa6f225031be2d3d72626923b2d7afc9525fcc2d540a0968764fc5162

Contents?: true

Size: 810 Bytes

Versions: 61

Compression:

Stored size: 810 Bytes

Contents

require 'spec_helper'

RSpec.describe RubySMB::SMB1::Packet::Trans::PeekNmpipeResponse do

  subject(:packet) { described_class.new }

  describe '#smb_header' do
    subject(:header) { packet.smb_header }

    it 'is a standard SMB Header' do
      expect(header).to be_a RubySMB::SMB1::SMBHeader
    end

    it 'should have the command set to SMB_COM_TRANSACTION' do
      expect(header.command).to eq RubySMB::SMB1::Commands::SMB_COM_TRANSACTION
    end

    it 'should have the response flag set' do
      expect(header.flags.reply).to eq 1
    end
  end

  describe '#parameter_block' do
    subject(:parameter_block) { packet.parameter_block }

    it 'is a standard Trans ParameterBlock' do
      expect(parameter_block).to be_a RubySMB::SMB1::Packet::Trans::Response::ParameterBlock
    end
  end

end

Version data entries

61 entries across 61 versions & 1 rubygems

Version Path
ruby_smb-2.0.9 spec/lib/ruby_smb/smb1/packet/trans/peek_nmpipe_response_spec.rb
ruby_smb-2.0.8 spec/lib/ruby_smb/smb1/packet/trans/peek_nmpipe_response_spec.rb
ruby_smb-2.0.7 spec/lib/ruby_smb/smb1/packet/trans/peek_nmpipe_response_spec.rb
ruby_smb-2.0.6 spec/lib/ruby_smb/smb1/packet/trans/peek_nmpipe_response_spec.rb
ruby_smb-2.0.5 spec/lib/ruby_smb/smb1/packet/trans/peek_nmpipe_response_spec.rb
ruby_smb-2.0.4 spec/lib/ruby_smb/smb1/packet/trans/peek_nmpipe_response_spec.rb
ruby_smb-2.0.3 spec/lib/ruby_smb/smb1/packet/trans/peek_nmpipe_response_spec.rb
ruby_smb-2.0.2 spec/lib/ruby_smb/smb1/packet/trans/peek_nmpipe_response_spec.rb
ruby_smb-2.0.1 spec/lib/ruby_smb/smb1/packet/trans/peek_nmpipe_response_spec.rb
ruby_smb-2.0.0 spec/lib/ruby_smb/smb1/packet/trans/peek_nmpipe_response_spec.rb
ruby_smb-1.1.0 spec/lib/ruby_smb/smb1/packet/trans/peek_nmpipe_response_spec.rb
ruby_smb-1.0.5 spec/lib/ruby_smb/smb1/packet/trans/peek_nmpipe_response_spec.rb
ruby_smb-1.0.4 spec/lib/ruby_smb/smb1/packet/trans/peek_nmpipe_response_spec.rb
ruby_smb-1.0.3 spec/lib/ruby_smb/smb1/packet/trans/peek_nmpipe_response_spec.rb
ruby_smb-1.0.2 spec/lib/ruby_smb/smb1/packet/trans/peek_nmpipe_response_spec.rb
ruby_smb-1.0.1 spec/lib/ruby_smb/smb1/packet/trans/peek_nmpipe_response_spec.rb
ruby_smb-1.0.0 spec/lib/ruby_smb/smb1/packet/trans/peek_nmpipe_response_spec.rb
ruby_smb-0.0.24 spec/lib/ruby_smb/smb1/packet/trans/peek_nmpipe_response_spec.rb
ruby_smb-0.0.23 spec/lib/ruby_smb/smb1/packet/trans/peek_nmpipe_response_spec.rb
ruby_smb-0.0.22 spec/lib/ruby_smb/smb1/packet/trans/peek_nmpipe_response_spec.rb