summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2020-05-03 12:10:39 +0300
committerLars Wirzenius <liw@liw.fi>2020-05-03 12:10:39 +0300
commit99d7c5b7218d98053f35a7f7e9d99b0e2b7476ec (patch)
tree5e77dbc07069e3c36a73373e4a604adf37fcd46f
parentf859c82e6cfb2119dc6eee4ab768df4b4a9e19fc (diff)
downloadick-contractor-99d7c5b7218d98053f35a7f7e9d99b0e2b7476ec.tar.gz
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.
-rw-r--r--binds.yaml13
1 files 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<filename>\S+)
+- given: file {filename}
function: create_file
-- given: file (?P<filename>\S+) from source directory
+- given: file {filename} from source directory
function: copy_file_from_srcdir
-- when: I run contractor build (?P<filename>\S+)
+- when: I run contractor build {filename}
function: run_contractor_build
-- when: I run contractor dump (?P<filename>\S+)
+- when: I run contractor dump {filename}
function: run_contractor_dump
- then: exit code is (?P<exit_code>\d+)
+ regex: true
function: exit_code_is
-- then: file (?P<filename>\S+) exists
+- then: file {filename} exists
function: file_exists
-- then: the JSON output matches (?P<filename>\S+)
+- then: the JSON output matches {filename}
function: stdout_json_matches_yaml_file