replacing depricated rspec