Removed rspec deprecation warning.