From 0d9fb9e8a8eb6dd418e8e93ad978bfa32b3c4e48 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juanjo=20Baza=CC=81n?= Date: Sun, 4 Dec 2016 00:23:19 +0100 Subject: [PATCH] fix flaky spec --- spec/features/account_spec.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spec/features/account_spec.rb b/spec/features/account_spec.rb index 5561e89d4..ef24226f1 100644 --- a/spec/features/account_spec.rb +++ b/spec/features/account_spec.rb @@ -114,10 +114,11 @@ feature 'Account' do scenario 'Errors editing credentials' do visit root_path - click_link "My account" + click_link 'My account' expect(current_path).to eq(account_path) + expect(page).to have_link('Change my credentials') click_link 'Change my credentials' click_button 'Update'