updates specs
This commit is contained in:
@@ -138,6 +138,6 @@ feature 'Account' do
|
|||||||
|
|
||||||
login_through_form_as(@user)
|
login_through_form_as(@user)
|
||||||
|
|
||||||
expect(page).to have_content "Invalid email or password"
|
expect(page).to have_content "Invalid login or password"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -42,11 +42,11 @@ feature 'Moderate users' do
|
|||||||
visit root_path
|
visit root_path
|
||||||
|
|
||||||
click_link 'Sign in'
|
click_link 'Sign in'
|
||||||
fill_in 'user_email', with: citizen.email
|
fill_in 'user_login', with: citizen.email
|
||||||
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 email or password'
|
expect(page).to have_content 'Invalid login or password'
|
||||||
expect(current_path).to eq(new_user_session_path)
|
expect(current_path).to eq(new_user_session_path)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ feature "Welcome screen" do
|
|||||||
|
|
||||||
visit email_path(email_verification_token: encrypted)
|
visit email_path(email_verification_token: encrypted)
|
||||||
|
|
||||||
fill_in 'user_email', with: user.email
|
fill_in 'user_login', with: user.email
|
||||||
fill_in 'user_password', with: user.password
|
fill_in 'user_password', with: user.password
|
||||||
|
|
||||||
click_button 'Enter'
|
click_button 'Enter'
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ module CommonActions
|
|||||||
visit root_path
|
visit root_path
|
||||||
click_link 'Sign in'
|
click_link 'Sign in'
|
||||||
|
|
||||||
fill_in 'user_email', with: user.email
|
fill_in 'user_login', with: user.email
|
||||||
fill_in 'user_password', with: user.password
|
fill_in 'user_password', with: user.password
|
||||||
|
|
||||||
click_button 'Enter'
|
click_button 'Enter'
|
||||||
|
|||||||
Reference in New Issue
Block a user