Fix deprecated rspec syntax