Update rspec tests to use built-in matches.