Sha256: 3c04771482a96e8350593908b0f61a31333ef7e8dcaa4016cf91862bd1864b08

Contents?: true

Size: 826 Bytes

Versions: 9

Compression:

Stored size: 826 Bytes

Contents

RSpec.describe MetasploitDataModels::AutomaticExploitation::Match, type: :model do
  it_should_behave_like 'Metasploit::Concern.run'

  describe "associations" do
    describe "connecting to a Mdm::Module::Detail" do
      let(:vuln){ FactoryGirl.create(:mdm_vuln) }
      let(:module_detail){FactoryGirl.create(:mdm_module_detail)}

      subject(:automatic_exploitation_match){ described_class.new }

      before(:each ) do
        automatic_exploitation_match.matchable = vuln
        automatic_exploitation_match.module_fullname = module_detail.fullname
        automatic_exploitation_match.save!
      end

      it 'should point to the Mdm::Module::Detail with a fullname corresponding to #module_fullname' do
        expect(automatic_exploitation_match.module_detail).to eq(module_detail)
      end

    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
metasploit_data_models-0.24.4 spec/app/models/metasploit_data_models/automatic_exploitation/match_spec.rb
metasploit_data_models-1.2.1 spec/app/models/metasploit_data_models/automatic_exploitation/match_spec.rb
metasploit_data_models-1.2.0 spec/app/models/metasploit_data_models/automatic_exploitation/match_spec.rb
metasploit_data_models-1.1.0 spec/app/models/metasploit_data_models/automatic_exploitation/match_spec.rb
metasploit_data_models-1.0.1 spec/app/models/metasploit_data_models/automatic_exploitation/match_spec.rb
metasploit_data_models-1.0.0 spec/app/models/metasploit_data_models/automatic_exploitation/match_spec.rb
metasploit_data_models-0.24.3 spec/app/models/metasploit_data_models/automatic_exploitation/match_spec.rb
metasploit_data_models-0.24.2 spec/app/models/metasploit_data_models/automatic_exploitation/match_spec.rb
metasploit_data_models-0.24.1.pre.rspec.pre.3.pre.1 spec/app/models/metasploit_data_models/automatic_exploitation/match_spec.rb