Update rspec to 3.1

Migrate to the new rspec syntax and bump up rspec version in Gemfile to 3.1.