diff options
author | Lars Wirzenius <liw@liw.fi> | 2020-05-03 12:10:39 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2020-05-03 12:10:39 +0300 |
commit | 99d7c5b7218d98053f35a7f7e9d99b0e2b7476ec (patch) | |
tree | 5e77dbc07069e3c36a73373e4a604adf37fcd46f /binds.yaml | |
parent | f859c82e6cfb2119dc6eee4ab768df4b4a9e19fc (diff) | |
download | ick-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.
Diffstat (limited to 'binds.yaml')
-rw-r--r-- | binds.yaml | 13 |
1 files changed, 7 insertions, 6 deletions
@@ -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 |