Sha256: 7f5aab49cfce58d68d984528aebfc84e2cbde9985456990b018e0b68d0f8cf10
Contents?: true
Size: 829 Bytes
Versions: 8
Compression:
Stored size: 829 Bytes
Contents
require 'spec_helper' describe MetasploitDataModels::AutomaticExploitation::Match 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
8 entries across 8 versions & 1 rubygems