Removed deprecated calls in rspec file