removed deprecated rspec method