From 99d7c5b7218d98053f35a7f7e9d99b0e2b7476ec Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Sun, 3 May 2020 12:10:39 +0300 Subject: Fix: bindings to work with new Subplot patterns Subplot has recently added support for simpler patterns for capturing parts or step text, and regular expressions must now be specified explicitly. This commit changes that. --- binds.yaml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/binds.yaml b/binds.yaml index 9d4a946..0392a78 100644 --- a/binds.yaml +++ b/binds.yaml @@ -1,23 +1,24 @@ - given: a working contractor function: contractor_is_working -- given: file (?P\S+) +- given: file {filename} function: create_file -- given: file (?P\S+) from source directory +- given: file {filename} from source directory function: copy_file_from_srcdir -- when: I run contractor build (?P\S+) +- when: I run contractor build {filename} function: run_contractor_build -- when: I run contractor dump (?P\S+) +- when: I run contractor dump {filename} function: run_contractor_dump - then: exit code is (?P\d+) + regex: true function: exit_code_is -- then: file (?P\S+) exists +- then: file {filename} exists function: file_exists -- then: the JSON output matches (?P\S+) +- then: the JSON output matches {filename} function: stdout_json_matches_yaml_file -- cgit v1.2.1