16 lines
430 B
Ruby
16 lines
430 B
Ruby
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 d’acceptation")
|
||
expect(subject).to have_text(procedure.libelle)
|
||
end
|
||
end
|