I’m releasing a new open source library, HTTP-Assertions, that I use behind the scenes at OregonLaws.org. It helps me keep the server running smoothly and make sure that my changes to the config files haven’t introduced new bugs.
It introduces these new assert methods to the Rails testing environment:
assert_200 assert_forbidden assert_temp_redirect_to assert_perm_redirect_to
Here’s an example:
assert_200 'https://www.oregonlaws.org/ors/161.360'
See the README on github for more details.