fix deprecated rspec matcher