Upgraded to rspec 3 and updated specs.

This updates rspec to version 3 which fixes the deprecation warnings and the error that I was getting with update_index.