Fixes a deprecation warning in rspec 3....

while still maintaining backwards compatibility with rspec 2.