updates specs

This commit is contained in:
Juanjo Bazán
2017-06-12 19:48:57 +02:00
parent ed30051653
commit c4ba6a7e94
4 changed files with 5 additions and 5 deletions

View File

@@ -138,6 +138,6 @@ feature 'Account' do
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

View File

@@ -42,11 +42,11 @@ feature 'Moderate users' do
visit root_path
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
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)
end

View File

@@ -18,7 +18,7 @@ feature "Welcome screen" do
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
click_button 'Enter'

View File

@@ -18,7 +18,7 @@ module CommonActions
visit root_path
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
click_button 'Enter'