Fixing rspec deprecation warnings