[#2750] do parsing of displayed_fields inside ProcedurePresentation
rather than in the view
This commit is contained in:
parent
f59984ea70
commit
40a5ff0266
3 changed files with 23 additions and 20 deletions
|
@ -109,9 +109,9 @@ describe ProcedurePresentation do
|
|||
end
|
||||
|
||||
describe '#get_value' do
|
||||
let(:procedure_presentation) { ProcedurePresentation.create(assign_to: assign_to) }
|
||||
let(:procedure_presentation) { ProcedurePresentation.create(assign_to: assign_to, displayed_fields: [{ 'table' => table, 'column' => column }]) }
|
||||
|
||||
subject { procedure_presentation.get_value(dossier, table, column) }
|
||||
subject { procedure_presentation.displayed_field_values(dossier).first }
|
||||
|
||||
context 'for self table' do
|
||||
let(:table) { 'self' }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue