fixes specs with current devise response implementation

This commit is contained in:
Juanjo Bazán
2017-06-16 11:27:52 +02:00
committed by Julian Herrero
parent 2de51d1888
commit f740a868f5
3 changed files with 3 additions and 3 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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"