Sha256: ea1599535d918abf547b44d0f12a57debcd043113ed5e2f0d7dd3da5ed024c35
Contents?: true
Size: 743 Bytes
Versions: 2
Compression:
Stored size: 743 Bytes
Contents
require 'spec_helper' describe MetasploitDataModels::Search::Operation::Port::Number do context 'CONSTANTS' do context 'BITS' do subject(:bits) { described_class::BITS } it { should == 16 } end context 'MAXIMUM' do subject(:maxium) { described_class::MAXIMUM } it { should == 65535 } end context 'MINIMUM' do subject(:minimum) { described_class::MINIMUM } it { should == 0 } end context 'RANGE' do subject(:range) { described_class::RANGE } it { should == (0..65535) } end end context 'validations' do it { should validate_inclusion_of(:value).in_range(described_class::RANGE) } end end
Version data entries
2 entries across 2 versions & 1 rubygems