clearsightstudio/thesis — pull request #2 by danielberkompas (2013-03-23 14:14:06+00:00)
Title: Rspec Test Suite 

I was looking for something to hack on after getting my vim/tmux configuration done, so I thought I'd gift Thesis with a test suite; if you guys want it.

I implemented rspec testing for the models and controllers. Just go to the root directory and type `rspec`.
![Screenshot_3_23_13_7_12_AM-2](https://f.cloud.github.com/assets/1186992/293958/c1a39e84-93c3-11e2-8c9d-7fe61d417179.png)

(That pending notice is a suggestion based on my reading of the code. Check the diff for more details.)

I'm not sure how you'd test generators right now, though I suppose you could test them like any other class. In a couple places, my testing turned up minor bugs so I also fixed those.

If you merge this in, I'd recommend hooking up [Travis.ci](http://travis-ci.com) to run the test suite automatically on every push to Github. It's free for open source, and that way, you'll be able to see if future contributions pass the tests without cloning down the changes.