Skip to content

Commit 023f47f

Browse files
committed
Use build instead of create
1 parent b9934cf commit 023f47f

File tree

1 file changed

+2
-2
lines changed
  • spec/support/shared/examples/msf/db_manager

1 file changed

+2
-2
lines changed

spec/support/shared/examples/msf/db_manager/session.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,8 @@
125125
context 'with a match in user_data' do
126126
let(:user_data) do
127127
{
128-
match: FactoryGirl.create(:automatic_exploitation_match),
129-
match_set: FactoryGirl.create(:automatic_exploitation_match_set),
128+
match: FactoryGirl.build(:automatic_exploitation_match),
129+
match_set: FactoryGirl.build(:automatic_exploitation_match_set),
130130
run: FactoryGirl.build(:automatic_exploitation_run, workspace: session_workspace),
131131
}
132132
end

0 commit comments

Comments
 (0)