[#2750] do parsing of displayed_fields inside ProcedurePresentation

rather than in the view
This commit is contained in:
Frederic Merizen 2018-10-05 15:25:24 +02:00
parent f59984ea70
commit 40a5ff0266
3 changed files with 23 additions and 20 deletions

View file

@ -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' }