From fab4a41c57ce4f058a53e06ee8f7e10b9300617c Mon Sep 17 00:00:00 2001 From: kara Diaby Date: Mon, 7 Jun 2021 14:21:22 +0200 Subject: [PATCH] add tests regarding /users/statistiques view --- .../users/statistiques/show.html.haml_spec.rb | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 spec/views/users/statistiques/show.html.haml_spec.rb diff --git a/spec/views/users/statistiques/show.html.haml_spec.rb b/spec/views/users/statistiques/show.html.haml_spec.rb new file mode 100644 index 000000000..17ed52a7b --- /dev/null +++ b/spec/views/users/statistiques/show.html.haml_spec.rb @@ -0,0 +1,16 @@ +describe 'users/statistiques/show.html.haml', type: :view do + let(:procedure) { create(:procedure) } + + before do + assign(:procedure, procedure) + end + + subject { render } + + it "display stats" do + expect(subject).to have_text("RÉPARTITION PAR SEMAINE") + expect(subject).to have_text("AVANCÉE DES DOSSIERS") + expect(subject).to have_text("TAUX D’ACCEPTATION") + expect(subject).to have_text(procedure.libelle) + end +end