refactor: GET pattern matching in pattern_matching_spec.rb