testing invalid URLs #8
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Scenario
Given I am on the homepage
When I type an invalid URL
And I submit the form
I should be redirected to the homepage with an error message that the URL was not correct
should this include non-existing URLs as well as existing ones? (i.e. a URL format that is correct, but that doesn't exist as an actual page vs an actual URL that exists and can be visited).
closed by bucky/url-shortener#18
was closed prematurely because i was working on another part for the empty url validation.
https://medium.com/@henryyihengzhang/validating-urls-in-ruby-c3e4646c6494 has a few options.