fix deprecation for rspec 3

The subhash syntax was deprecated in RSpec 3. This isn't backwards compatible, we could make it backwards compatible but I wasn't sure of the best way to detect which version we should use. Let me know if you have any suggestions on that front or if you're happy to just upgrade the rspec dependency. Thanks!