[#894] display state for user

This commit is contained in:
Tanguy PATTE 2015-09-25 11:42:20 +02:00
parent 92d5fb4cf3
commit 7f83712449
2 changed files with 6 additions and 0 deletions

View file

@ -3,9 +3,11 @@
%table.table
%thead
%th Nom du Projet
%th Etat
%th Mise à jour
- @dossiers.each do |dossier|
%tr
%td
= link_to(dossier.nom_projet, users_dossier_recapitulatif_path(dossier))
%td{id: "dossier_#{dossier.id}_state"}= dossier.state_fr
%td= dossier.last_update

View file

@ -22,6 +22,10 @@ feature 'user access to the list of his dossier' do
expect(page.body).to match(/#{last_updated_dossier.nom_projet}.*#{dossier1.nom_projet}/m)
end
scenario 'the state of dossier is displayed' do
expect(page).to have_css("#dossier_#{dossier1.id}_state")
end
context 'when user clicks on a projet in list' do
before do
page.click_on dossier1.nom_projet