Removed rspec deprecation warning