Support rspec 3 by removing a deprecated use.