dblock/grape-on-rack — pull request #8 by slauwers (2014-10-20 12:21:33+00:00)
Title: Expose potential leaks

Following the discussion around [issue #665 in intridea/grape][1], this PR adds some contextual information when running the spec on the Ping API (`bundle exec rspec spec/api/ping_spec.rb`). Please note that the tests themselves have not been changed, only additional information is being displayed.

If you need the tests to expose the issue by actually testing for it and failing, please let me know. Upon running the ping spec, you should see something along the lines of:

```
Grape::Route 87 delta 71
Grape::Util::HashStack 68 delta 28
Grape::Endpoint 55 delta 28
```

Please also note that sometimes, two other classes seem to not be properly GC'd, however I don't know how relevant this is to the issue at hand.

```
Grape::Route 87 delta 71
Grape::Util::HashStack 68 delta 28
Grape::Endpoint 56 delta 29
Grape::Request 1 delta 1
Grape::Cookies 1 delta 1
```

[1]: https://github.com/intridea/grape/issues/665