deadlyicon/hobson — pull request #6 by growlypants (2012-03-31 18:54:01+00:00)
Title: Caches complete test runs on the project/test_runs index page

I did this so the index page doesn't calculate completed runs every time,
as that checks redis multiple times.

To accomplish this, I built a really simple in-memory cache to store any data.
You could easily change it to redis, however I thought an in memory cache
was faster and it shouldn't take up too much space.

BTW, I have no clue if this actually works. The specs do pass. But I couldn't get the web server to run, and didn't see any specs for the web server to test it against. I'm not super familiar with sinatra's render signature, so I based it off rails standard options. That should be looked at. And I don't know if the capture block works either. I believe haml implements capture too, so it might be ok. But the general idea, I believe, is there.

Thanks dude.