diff --git a/codegen/smithy-ruby-codegen/src/main/java/software/amazon/smithy/ruby/codegen/generators/HttpProtocolTestGenerator.java b/codegen/smithy-ruby-codegen/src/main/java/software/amazon/smithy/ruby/codegen/generators/HttpProtocolTestGenerator.java index 6eefd874c..bf9d50a42 100644 --- a/codegen/smithy-ruby-codegen/src/main/java/software/amazon/smithy/ruby/codegen/generators/HttpProtocolTestGenerator.java +++ b/codegen/smithy-ruby-codegen/src/main/java/software/amazon/smithy/ruby/codegen/generators/HttpProtocolTestGenerator.java @@ -379,8 +379,8 @@ private void renderRequestMiddlewareBody(Optional body, Optional case "application/xml": if (body.get().length() > 0) { writer - .write("expect($T.parse(request.body.read)).to " - + "match_xml_node($T.parse('$L'))", + .write("expect($1T.parse(request.body.read)).to " + + "match_xml_node($1T.parse('$2L'))", Hearth.XML, body.get()) .addUseImports(RubyDependency.HEARTH_XML_MATCHER); } else {