|
|
|
@ -30,6 +30,16 @@ RSpec.describe "User Features" do
|
|
|
|
|
click_button("Sign in") |
|
|
|
|
expect(page).to have_current_path("/logs") |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
it " can log out again" do |
|
|
|
|
visit("/logs") |
|
|
|
|
fill_in("user[email]", with: user.email) |
|
|
|
|
fill_in("user[password]", with: "pAssword1") |
|
|
|
|
click_button("Sign in") |
|
|
|
|
click_link("Sign out") |
|
|
|
|
expect(page).to have_current_path("/") |
|
|
|
|
expect(page).to have_content("Start now") |
|
|
|
|
end |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
context "A user who has forgotten their password" do |
|
|
|
|