From e76656955cbf9b941f4ac4f2104ebb42a4a8c4b4 Mon Sep 17 00:00:00 2001 From: Mathieu Magnin Date: Tue, 17 Oct 2017 11:03:07 +0200 Subject: [PATCH] Link should exactly match dossier id, not on email like user1234@tps.fr --- spec/features/new_gestionnaire/procedure_filters_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/features/new_gestionnaire/procedure_filters_spec.rb b/spec/features/new_gestionnaire/procedure_filters_spec.rb index 69ef54da1..ddab444c7 100644 --- a/spec/features/new_gestionnaire/procedure_filters_spec.rb +++ b/spec/features/new_gestionnaire/procedure_filters_spec.rb @@ -59,10 +59,10 @@ feature "procedure filters" do expect(page).to have_content("#{type_de_champ.libelle} : #{champ.value}") within ".dossiers-table" do - expect(page).to have_link(new_unfollow_dossier.id) + expect(page).to have_link(new_unfollow_dossier.id, exact: true) expect(page).to have_link(new_unfollow_dossier.user.email) - expect(page).not_to have_link(new_unfollow_dossier_2.id) + expect(page).not_to have_link(new_unfollow_dossier_2.id, exact: true) expect(page).not_to have_link(new_unfollow_dossier_2.user.email) end