add tests regarding /users/statistiques view

This commit is contained in:
kara Diaby 2021-06-07 14:21:22 +02:00
parent c235b26746
commit fab4a41c57

View file

@ -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 DACCEPTATION")
expect(subject).to have_text(procedure.libelle)
end
end