demarches-normaliennes/spec/views/users/statistiques/show.html.haml_spec.rb
2024-08-22 09:26:48 +02:00

18 lines
461 B
Ruby
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# frozen_string_literal: true
describe 'users/statistiques/show', 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