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-4.0.1 spec/app/models/metasploit_data_models/ip_address/v4/segment/segmented_spec.rb
metasploit_data_models-4.0.0 spec/app/models/metasploit_data_models/ip_address/v4/segment/segmented_spec.rb
metasploit_data_models-3.0.10 spec/app/models/metasploit_data_models/ip_address/v4/segment/segmented_spec.rb
metasploit_data_models-3.0.9 spec/app/models/metasploit_data_models/ip_address/v4/segment/segmented_spec.rb
metasploit_data_models-3.0.8 spec/app/models/metasploit_data_models/ip_address/v4/segment/segmented_spec.rb
metasploit_data_models-3.0.7 spec/app/models/metasploit_data_models/ip_address/v4/segment/segmented_spec.rb
metasploit_data_models-3.0.6 spec/app/models/metasploit_data_models/ip_address/v4/segment/segmented_spec.rb
metasploit_data_models-3.0.5 spec/app/models/metasploit_data_models/ip_address/v4/segment/segmented_spec.rb
metasploit_data_models-2.0.17 spec/app/models/metasploit_data_models/ip_address/v4/segment/segmented_spec.rb
metasploit_data_models-3.0.4 spec/app/models/metasploit_data_models/ip_address/v4/segment/segmented_spec.rb
metasploit_data_models-3.0.2 spec/app/models/metasploit_data_models/ip_address/v4/segment/segmented_spec.rb
metasploit_data_models-3.0.1 spec/app/models/metasploit_data_models/ip_address/v4/segment/segmented_spec.rb
metasploit_data_models-3.0.0 spec/app/models/metasploit_data_models/ip_address/v4/segment/segmented_spec.rb
metasploit_data_models-2.0.16 spec/app/models/metasploit_data_models/ip_address/v4/segment/segmented_spec.rb
metasploit_data_models-2.0.15 spec/app/models/metasploit_data_models/ip_address/v4/segment/segmented_spec.rb
metasploit_data_models-2.0.14 spec/app/models/metasploit_data_models/ip_address/v4/segment/segmented_spec.rb
metasploit_data_models-2.0.13 spec/app/models/metasploit_data_models/ip_address/v4/segment/segmented_spec.rb
metasploit_data_models-2.0.12 spec/app/models/metasploit_data_models/ip_address/v4/segment/segmented_spec.rb
metasploit_data_models-2.0.11 spec/app/models/metasploit_data_models/ip_address/v4/segment/segmented_spec.rb
metasploit_data_models-2.0.10 spec/app/models/metasploit_data_models/ip_address/v4/segment/segmented_spec.rb