From 56e28a3bc4468867f57a84cb917c56a0382f8705 Mon Sep 17 00:00:00 2001 From: David Chang Date: Tue, 1 Feb 2022 14:07:37 -0800 Subject: [PATCH] Update robo-directive doc to match the code (#287) The code expects at least 2 elements for subarray https://github.com/runningcode/fladle/blob/master/fladle-plugin/src/main/java/com/osacky/flank/gradle/YamlWriter.kt#L103 and will throw an out of bounds exception if you pass what is shown in the documentation. --- docs/configuration.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/configuration.md b/docs/configuration.md index cd209565..bc4aebe1 100644 --- a/docs/configuration.md +++ b/docs/configuration.md @@ -759,15 +759,15 @@ List of robo_directives that you can use to customize the behavior of Robo test. === "Groovy" ``` groovy roboDirectives = [ - ["test:input_resource_name", "message"], - ["click:button_resource_name", ""], + ["test, "input_resource_name", "message"], + ["click, "button_resource_name", ""], ] ``` === "Kotlin" ``` kotlin roboDirectives.set(listOf( - listOf("test:input_resource_name", "message"), - listOf("click:button_resource_name", ""), + listOf("test", "input_resource_name", "message"), + listOf("click", "button_resource_name", ""), )) ```