timisbusy/handson-reddit — pull request #1 by richardharrington (2012-09-08 06:05:15+00:00)
Title: changed name of 'subsubreddit' to 'filter', and added negative test for nonexistent filters

I pushed my earlier commit already before realizing that I should have submitted a pull request. You can revert it if you want.

What it did was abstract the list of filters (the tabs at the top of the reddit page) so that they're in an array at the top. Also I added the last one, which is 'hot'. It made the code slightly shorter.

I was actually not familiar with the reedit site and thought there might be many more of them. There aren't, it turns out, but it's always good to have the option I guess.

This pull request here changes the variable name 'subsubreddit' to 'filter', and also it adds a test to make sure that nonsense filter names are undefined.