From f740a868f50793247b62440352bacdc39b856aff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juanjo=20Baza=CC=81n?= Date: Fri, 16 Jun 2017 11:27:52 +0200 Subject: [PATCH] fixes specs with current devise response implementation --- spec/features/account_spec.rb | 2 +- spec/features/moderation/users_spec.rb | 2 +- spec/features/users_auth_spec.rb | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/spec/features/account_spec.rb b/spec/features/account_spec.rb index 1902ede45..38e9f5c11 100644 --- a/spec/features/account_spec.rb +++ b/spec/features/account_spec.rb @@ -172,7 +172,7 @@ feature "Account" do login_through_form_as(@user) - expect(page).to have_content "Invalid login or password" + expect(page).to have_content "Invalid Email or username or password" end context "Recommendations" do diff --git a/spec/features/moderation/users_spec.rb b/spec/features/moderation/users_spec.rb index b2c6e37d9..3fd0255f7 100644 --- a/spec/features/moderation/users_spec.rb +++ b/spec/features/moderation/users_spec.rb @@ -46,7 +46,7 @@ feature "Moderate users" do fill_in "user_password", with: citizen.password click_button "Enter" - expect(page).to have_content "Invalid login or password" + expect(page).to have_content "Invalid Email or username or password" expect(page).to have_current_path(new_user_session_path) end diff --git a/spec/features/users_auth_spec.rb b/spec/features/users_auth_spec.rb index 040f64305..cffd8c453 100644 --- a/spec/features/users_auth_spec.rb +++ b/spec/features/users_auth_spec.rb @@ -88,7 +88,7 @@ feature "Users" do click_button "Enter" expect(page).not_to have_content "You have been signed in successfully." - expect(page).to have_content "Invalid login or password." + expect(page).to have_content "Invalid Email or username or password." fill_in "user_login", with: "venom@nyc.dev" fill_in "user_password", with: "symbiote"