expect(page).tohave_content("For security reasons, your join link expired - get another one using the button below (valid for 3 hours).")
expect(page).tohave_content("For security reasons, your join link expired - get another one using the button below (valid for 3 hours).")
end
end
end
end
context"when the token is blank"do
beforedo
user.send_confirmation_instructions
get"/account/confirmation"
end
it"shows the invalid page"do
expect(page).tohave_content("It looks like you have requested a newer join link than this one. Check your emails and follow the most recent link instead.")
expect(page).tohave_content("It looks like you have requested a newer join link than this one. Check your emails and follow the most recent link instead.")
end
end
context"when the user has already been confirmed"do
context"when the user has already been confirmed"do