mirror of
https://github.com/jlengrand/openapi-generator.git
synced 2026-05-16 08:31:26 +00:00
Move path unescaping from DefaultGenerator to Ruby api template.
This commit is contained in:
@@ -223,7 +223,7 @@ public class DefaultGeneratorTest {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testGenerateWithHtmlEntity() throws Exception {
|
||||
public void testGenerateRubyClientWithHtmlEntity() throws Exception {
|
||||
final File output = folder.getRoot();
|
||||
|
||||
final Swagger swagger = new SwaggerParser().read("src/test/resources/2_0/pathWithHtmlEntity.yaml");
|
||||
@@ -239,6 +239,7 @@ public class DefaultGeneratorTest {
|
||||
for (File file : files) {
|
||||
if (file.getName().equals("default_api.rb")) {
|
||||
apiFileGenerated = true;
|
||||
// Ruby client should set the path unescaped in the api file
|
||||
assertTrue(FileUtils.readFileToString(file, StandardCharsets.UTF_8).contains("local_var_path = \"/foo=bar\""));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user