Register an XML encoder for response tests (#32220)
This commit is contained in:
parent
d95f6f4410
commit
cc8d723e71
2 changed files with 53 additions and 32 deletions
4
spec/support/response_encoders.rb
Normal file
4
spec/support/response_encoders.rb
Normal file
|
@ -0,0 +1,4 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
ActionDispatch::IntegrationTest
|
||||
.register_encoder :xml, response_parser: ->(body) { Nokogiri::XML(body) }
|
Loading…
Add table
Add a link
Reference in a new issue