2
0

Register an XML encoder for response tests (#32220)

This commit is contained in:
Matt Jankowski
2024-10-03 09:10:27 -04:00
committed by GitHub
parent d95f6f4410
commit cc8d723e71
2 changed files with 53 additions and 32 deletions

View File

@@ -0,0 +1,4 @@
# frozen_string_literal: true
ActionDispatch::IntegrationTest
.register_encoder :xml, response_parser: ->(body) { Nokogiri::XML(body) }