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:
See the README on github for more details.