Fix rspec deprication warnings.