@@ -19,7 +19,7 @@ RSpec.feature "Login", type: :feature do
|
||||
fill_in "Password", with: user.password
|
||||
click_button "Sign in"
|
||||
|
||||
expect(page).to have_content(I18n.t("sessions.new.title"))
|
||||
expect(page).to have_content("Puzzle scoreboard")
|
||||
end
|
||||
|
||||
it "should fail to log in the user with an incorrect password" do
|
||||
@@ -28,7 +28,7 @@ RSpec.feature "Login", type: :feature do
|
||||
fill_in "Password", with: Faker::Internet.unique.password
|
||||
click_button "Sign in"
|
||||
|
||||
expect(page).to have_content(I18n.t("sessions.new.title"))
|
||||
expect(page).to have_content("Puzzle scoreboard")
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user