You're setting the user id in the session on a separate line, which works fine. It's also possible to specify the session contents directly in the request, on line 39. Check [the documentation here](http://apidock.com/rails/ActionController/TestCase/Behavior) for `get`, `post`, `put`, and `delete` to see how that works.