Sha256: d5b6d2eeab313e701dad0ddd5ab86a1a59682f6b9ec6b4b65c480a7fb33cec41

Contents?: true

Size: 566 Bytes

Versions: 31

Compression:

Stored size: 566 Bytes

Contents

require 'spec_helper'

describe Metasploit::Model::Authority::Zdi do
  context 'designation_url' do
    subject(:designation_url) do
      described_class.designation_url(designation)
    end

    let(:designation) do
      FactoryGirl.generate :metasploit_model_reference_zdi_designation
    end

    it 'should be under advisories directory' do
      expect(designation_url).to match_regex(/advisories\/.*#{designation}/)
    end

    it "should prefix designation with 'ZDI'" do
      expect(designation_url).to match_regex(/ZDI-#{designation}/)
    end
  end
end

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
metasploit-model-0.28.0 spec/lib/metasploit/model/authority/zdi_spec.rb
metasploit-model-0.28.0-java spec/lib/metasploit/model/authority/zdi_spec.rb
metasploit-model-0.28.0.pre.engine.pre.requires spec/lib/metasploit/model/authority/zdi_spec.rb
metasploit-model-0.27.4 spec/lib/metasploit/model/authority/zdi_spec.rb
metasploit-model-0.27.4-java spec/lib/metasploit/model/authority/zdi_spec.rb
metasploit-model-0.27.3 spec/lib/metasploit/model/authority/zdi_spec.rb
metasploit-model-0.27.3-java spec/lib/metasploit/model/authority/zdi_spec.rb
metasploit-model-0.27.2 spec/lib/metasploit/model/authority/zdi_spec.rb
metasploit-model-0.27.2-java spec/lib/metasploit/model/authority/zdi_spec.rb
metasploit-model-0.27.1 spec/lib/metasploit/model/authority/zdi_spec.rb
metasploit-model-0.27.1-java spec/lib/metasploit/model/authority/zdi_spec.rb
metasploit-model-0.27.0 spec/lib/metasploit/model/authority/zdi_spec.rb
metasploit-model-0.27.0-java spec/lib/metasploit/model/authority/zdi_spec.rb
metasploit-model-0.27.0.pre.dep.pre.railties spec/lib/metasploit/model/authority/zdi_spec.rb
metasploit-model-0.26.1-java spec/lib/metasploit/model/authority/zdi_spec.rb
metasploit-model-0.26.1 spec/lib/metasploit/model/authority/zdi_spec.rb
metasploit-model-0.25.7 spec/lib/metasploit/model/authority/zdi_spec.rb
metasploit-model-0.25.7-java spec/lib/metasploit/model/authority/zdi_spec.rb
metasploit-model-0.25.6 spec/lib/metasploit/model/authority/zdi_spec.rb
metasploit-model-0.25.6-java spec/lib/metasploit/model/authority/zdi_spec.rb