Add travis and fix specs

Specs are currently failing on master. This PR
- Fixes them
- Adds Travis, so they won't break again.

Once this is merged, follow the steps at http://docs.travis-ci.com/user/getting-started/#Step-one%3A-Sign-in to have Travis track this repo.