heroku/heroku.rb — pull request #4 by ryanbrainard (2012-03-03 01:39:45+00:00)
Title: Add support for GET /user

This is to add for support for GET /user, which is helpful for getting back basic user info. I am using this in an app where I need to know the user's email address from their API key.

The mocking on this was tricky because there is no way to create a user via the API so I ended up following the same pattern as the GET /addons test where both the test and the mock read JSON from a file, but this seemed less than ideal -- suggestions on how to do this better are welcome.