mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-09-06 21:24:23 +08:00
Fix tests [SCI-11707]
This commit is contained in:
parent
1c8edec966
commit
343471d031
2 changed files with 2 additions and 1 deletions
|
@ -10,7 +10,7 @@ describe StepElements::FormResponsesController, type: :controller do
|
|||
let!(:form) { create(:form, team: team, created_by: user) }
|
||||
let!(:step) { create(:step, protocol: protocol) }
|
||||
let!(:protocol) { create(:protocol, added_by: user) }
|
||||
let!(:form_response) { create(:form_response, form: form, created_by: user) }
|
||||
let!(:form_response) { create(:form_response, form: form, created_by: user, parent: step) }
|
||||
let!(:step_orderable_element) { create(:step_orderable_element, orderable: form_response) }
|
||||
|
||||
before do
|
||||
|
|
|
@ -5,6 +5,7 @@ FactoryBot.define do
|
|||
association :form
|
||||
association :created_by, factory: :user
|
||||
association :step_orderable_element, factory: :step_orderable_element
|
||||
association :parent, factory: :step
|
||||
|
||||
status { :pending }
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue