Resolve deprecation warning for rspec 2.99.beta1 and higher

When testing my project with rspec 2.99.0.beta1, I got a deprecation warning.
I resolved it by this simple change. I tested with the rspec 2.14 and 2.99 both continued working.