From 023f47f19a076443138b89d052cc675c53320731 Mon Sep 17 00:00:00 2001 From: James Lee Date: Tue, 24 Mar 2015 13:17:42 -0500 Subject: [PATCH] Use build instead of create --- spec/support/shared/examples/msf/db_manager/session.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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