changes deprecated rspec syntax