fix deprecation in rspec matcher