diff --git a/spec/support/shared/examples/msf/db_manager/session.rb b/spec/support/shared/examples/msf/db_manager/session.rb index e1c42f826c..38189476c4 100644 --- a/spec/support/shared/examples/msf/db_manager/session.rb +++ b/spec/support/shared/examples/msf/db_manager/session.rb @@ -125,8 +125,8 @@ shared_examples_for 'Msf::DBManager::Session' do context 'with a match in user_data' do let(:user_data) do { - match: FactoryGirl.create(:automatic_exploitation_match), - match_set: FactoryGirl.create(:automatic_exploitation_match_set), + match: FactoryGirl.build(:automatic_exploitation_match), + match_set: FactoryGirl.build(:automatic_exploitation_match_set), run: FactoryGirl.build(:automatic_exploitation_run, workspace: session_workspace), } end