fixes specs with current devise response implementation
This commit is contained in:
committed by
Julian Herrero
parent
2de51d1888
commit
f740a868f5
@@ -172,7 +172,7 @@ feature "Account" do
|
|||||||
|
|
||||||
login_through_form_as(@user)
|
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
|
end
|
||||||
|
|
||||||
context "Recommendations" do
|
context "Recommendations" do
|
||||||
|
|||||||
@@ -46,7 +46,7 @@ feature "Moderate users" do
|
|||||||
fill_in "user_password", with: citizen.password
|
fill_in "user_password", with: citizen.password
|
||||||
click_button "Enter"
|
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)
|
expect(page).to have_current_path(new_user_session_path)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -88,7 +88,7 @@ feature "Users" do
|
|||||||
click_button "Enter"
|
click_button "Enter"
|
||||||
|
|
||||||
expect(page).not_to have_content "You have been signed in successfully."
|
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_login", with: "venom@nyc.dev"
|
||||||
fill_in "user_password", with: "symbiote"
|
fill_in "user_password", with: "symbiote"
|
||||||
|
|||||||
Reference in New Issue
Block a user