Sha256: 8fa015766c83557867079902b54db706c5fc75bdcce05e8f0f94e7811b8ccd78
Contents?: true
Size: 943 Bytes
Versions: 32
Compression:
Stored size: 943 Bytes
Contents
# encoding: UTF-8 require 'winrm/psrp/message_data/base' require 'winrm/psrp/message_data/session_capability' describe WinRM::PSRP::MessageData::SessionCapability do let(:protocol_version) { '2.2' } let(:ps_version) { '2.0' } let(:serialization_version) { '1.1.0.1' } let(:raw_data) do "\xEF\xBB\xBF<Obj RefId=\"0\"><MS>"\ "<Version N=\"protocolversion\">#{protocol_version}</Version>"\ "<Version N=\"PSVersion\">#{ps_version}</Version>"\ "<Version N=\"SerializationVersion\">#{serialization_version}</Version></MS></Obj>" end subject { described_class.new(raw_data) } it 'parses protocol version' do expect(subject.protocol_version).to eq(protocol_version) end it 'parses ps version' do expect(subject.ps_version).to eq(ps_version) end it 'parses serialization version' do expect(subject.serialization_version).to eq(serialization_version) end end
Version data entries
32 entries across 29 versions & 3 rubygems