fix(revision): fix tests to use new revison system
This commit is contained in:
parent
a36672239d
commit
02675a104d
12 changed files with 45 additions and 82 deletions
|
@ -48,7 +48,6 @@ describe API::V1::ProceduresController, type: :controller do
|
|||
it { expect(subject[:id]).to eq(champ.id) }
|
||||
it { expect(subject[:libelle]).to eq(champ.libelle) }
|
||||
it { expect(subject[:type_champ]).to eq(champ.type_champ) }
|
||||
it { expect(subject[:order_place]).to eq(champ.order_place) }
|
||||
it { expect(subject[:description]).to eq(champ.description) }
|
||||
end
|
||||
|
||||
|
|
|
@ -149,7 +149,7 @@ describe API::V2::GraphqlController do
|
|||
type: tdc.type_champ,
|
||||
description: tdc.description,
|
||||
required: tdc.mandatory?,
|
||||
champDescriptors: tdc.repetition? ? tdc.reload.types_de_champ.map { |tdc| { id: tdc.to_typed_id, type: tdc.type_champ } } : nil,
|
||||
champDescriptors: tdc.repetition? ? procedure.active_revision.children_of(tdc.reload).map { |tdc| { id: tdc.to_typed_id, type: tdc.type_champ } } : nil,
|
||||
options: tdc.drop_down_list? ? tdc.drop_down_list_options.reject(&:empty?) : nil
|
||||
}
|
||||
end,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue