From 9be58aa01210c6c8a343aa16c7e7119ace052fac Mon Sep 17 00:00:00 2001 From: Judith Date: Wed, 10 Jun 2020 15:39:01 +0200 Subject: [PATCH] only downcasing search values for yes_no type_de_champs --- spec/models/procedure_presentation_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/models/procedure_presentation_spec.rb b/spec/models/procedure_presentation_spec.rb index a1057de59..2b66781b8 100644 --- a/spec/models/procedure_presentation_spec.rb +++ b/spec/models/procedure_presentation_spec.rb @@ -922,11 +922,11 @@ describe ProcedurePresentation do context 'when type_de_champ text' do let(:filters) { { "suivis" => [] } } - it 'should downcase and passthrough value' do + it 'should passthrough value' do procedure_presentation.add_filter("suivis", "type_de_champ/#{first_type_de_champ_id}", "Oui") expect(procedure_presentation.filters).to eq({ "suivis" => [ - { "label" => first_type_de_champ.libelle, "table" => "type_de_champ", "column" => first_type_de_champ_id, "value" => "oui" } + { "label" => first_type_de_champ.libelle, "table" => "type_de_champ", "column" => first_type_de_champ_id, "value" => "Oui" } ] }) end