Sha256: 9decdde80f9e1379a6fa6ce7cd1ed30c3485cfbe6142a7e289ea0b328d9592d9

Contents?: true

Size: 551 Bytes

Versions: 68

Compression:

Stored size: 551 Bytes

Contents

RSpec.describe MetasploitDataModels::IPAddress::V4::Segmented, type: :model do
  context 'CONSTANTS' do
    context 'SEGMENT_COUNT' do
      subject(:segment_count) {
        described_class::SEGMENT_COUNT
      }

      it { is_expected.to eq(4) }
    end

    context 'SEPARATOR' do
      subject(:separator) {
        described_class::SEPARATOR
      }

      it { is_expected.to eq('.') }
    end
  end

  context 'segment_count' do
    subject(:segment_count) {
      described_class.segment_count
    }

    it { is_expected.to eq(4) }
  end
end

Version data entries

68 entries across 68 versions & 2 rubygems

Version Path
metasploit_data_models-2.0.9 spec/app/models/metasploit_data_models/ip_address/v4/segment/segmented_spec.rb
metasploit_data_models-2.0.8 spec/app/models/metasploit_data_models/ip_address/v4/segment/segmented_spec.rb
metasploit_data_models-2.0.7 spec/app/models/metasploit_data_models/ip_address/v4/segment/segmented_spec.rb
metasploit_data_models-2.0.6 spec/app/models/metasploit_data_models/ip_address/v4/segment/segmented_spec.rb
metasploit_data_models-2.0.5 spec/app/models/metasploit_data_models/ip_address/v4/segment/segmented_spec.rb
metasploit_data_models-2.0.4 spec/app/models/metasploit_data_models/ip_address/v4/segment/segmented_spec.rb
metasploit_data_models-2.0.1 spec/app/models/metasploit_data_models/ip_address/v4/segment/segmented_spec.rb
metasploit_data_models-2.0.0 spec/app/models/metasploit_data_models/ip_address/v4/segment/segmented_spec.rb
metasploit_data_models-1.3.0 spec/app/models/metasploit_data_models/ip_address/v4/segment/segmented_spec.rb
metasploit_data_models-1.2.11 spec/app/models/metasploit_data_models/ip_address/v4/segment/segmented_spec.rb
metasploit_data_models-1.2.10 spec/app/models/metasploit_data_models/ip_address/v4/segment/segmented_spec.rb
metasploit_data_models-1.2.9 spec/app/models/metasploit_data_models/ip_address/v4/segment/segmented_spec.rb
metasploit_data_models-1.2.8 spec/app/models/metasploit_data_models/ip_address/v4/segment/segmented_spec.rb
metasploit_data_models-1.2.7 spec/app/models/metasploit_data_models/ip_address/v4/segment/segmented_spec.rb
metasploit_data_models-1.2.6 spec/app/models/metasploit_data_models/ip_address/v4/segment/segmented_spec.rb
metasploit_data_models-1.2.5 spec/app/models/metasploit_data_models/ip_address/v4/segment/segmented_spec.rb
metasploit_data_models-1.2.4 spec/app/models/metasploit_data_models/ip_address/v4/segment/segmented_spec.rb
metasploit_data_models-1.2.3 spec/app/models/metasploit_data_models/ip_address/v4/segment/segmented_spec.rb
metasploit_data_models-1.2.2 spec/app/models/metasploit_data_models/ip_address/v4/segment/segmented_spec.rb
metasploit_data_models-0.24.4 spec/app/models/metasploit_data_models/ip_address/v4/segment/segmented_spec.rb