Update rspec.rb

Just replace deprecated method by new one.