update deprecated rspec test