I'm adding a new feature on a package. Goal is to have an expires_at column on a url table. I'm trying to write some tests for that but I have no idea on how to test that.
More precisely, How can I insert a valid url (with a valid expires_at in the future), and right after try to call this url and get something like "This url is no longer valid".