Sha256: 68e5ca9c53717cb57fbf5eed6d15bd6578e6a1198eb7b0ece44d6a736d06584a
Contents?: true
Size: 658 Bytes
Versions: 36
Compression:
Stored size: 658 Bytes
Contents
RSpec.describe RubySMB::Field::NtStatus do subject(:nt_status) { described_class.new } it { is_expected.to respond_to :to_nt_status } it 'uses an internal Unsigned 32-bit little endian integer' do expect(nt_status.val).to be_a BinData::Uint32le end it 'returns an integer value' do expect(nt_status.value).to be_a Integer end describe '#to_nt_status' do it 'should return a WindowsError::ErrorCode' do expect(nt_status.to_nt_status).to be_a WindowsError::ErrorCode end it 'should return the correct ErrorCode' do expect(nt_status.to_nt_status).to eq WindowsError::NTStatus::STATUS_SUCCESS end end end
Version data entries
36 entries across 36 versions & 1 rubygems