Fixes for Travis

- Set up git's `user.name` and `user.email` options so mock commits
  won't fail.
- Use RSpec's `contain_exactly` matcher to avoid relying on the order
  of directories.