mastodon/spec/support/response_encoders.rb

5 lines
139 B
Ruby

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