fix deprec warnings in rspec