Merge pull request #6257 from betagouv/tests-statistiques
Ajoute des tests pour users/statistiques
This commit is contained in:
commit
2802269531
1 changed files with 16 additions and 0 deletions
16
spec/views/users/statistiques/show.html.haml_spec.rb
Normal file
16
spec/views/users/statistiques/show.html.haml_spec.rb
Normal 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 D’ACCEPTATION")
|
||||||
|
expect(subject).to have_text(procedure.libelle)
|
||||||
|
end
|
||||||
|
end
|
Loading…
Add table
Reference in a new issue