Stub out :create_match_for_vuln on MatchSet since we already test it

MSP-13119
bug/bundler_fix
Fernando Arias 2015-09-29 16:36:59 -05:00
parent 393a71cf46
commit d4b9b8e1a4
No known key found for this signature in database
GPG Key ID: 89EC07CE01DF79A1
1 changed files with 4 additions and 0 deletions

View File

@ -122,6 +122,10 @@ shared_examples_for 'Msf::DBManager::Session' do
end
context 'with a run_id in user_data' do
before(:each) do
MetasploitDataModels::AutomaticExploitation::MatchSet.any_instance.stub(:create_match_for_vuln).and_return(nil)
end
let(:match_set) do
FactoryGirl.create(:automatic_exploitation_match_set, user: session_workspace.owner,workspace:session_workspace)
end