Nice set of tests. I would recommend extracting a method to reduce some of the duplication. Perhaps creating a [let](http://betterspecs.org/#let) for the parameters you're passing to post '/login'?