I’ve been putting off doing functional testing with rails for a while now because of the snag that we couldn’t figure out how to test with authentication. Finally I’ve decided to solve this once and for all and get to the root of the problem. First approach we tried was to explicitly log in using a post request to the login page in the test setup. Of course, it didn’t work as each request I belie