Merge pull request #6257 from betagouv/tests-statistiques

Ajoute des tests pour users/statistiques
This commit is contained in:
Kara Diaby 2021-06-07 15:31:56 +02:00 committed by GitHub
commit 2802269531
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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