Update rspec 2.x syntax to 3.x to remove deprecations