Prevent rspec deprecation warnings