upgrades stubs to rspec 3.1 to avoid deprecation warning