summaryrefslogtreecommitdiff
path: root/binds.yaml
blob: 0392a78b25f06095ba2454eac6a372b620236256 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
- given: a working contractor
  function: contractor_is_working

- given: file {filename}
  function: create_file

- given: file {filename} from source directory
  function: copy_file_from_srcdir

- when: I run contractor build {filename}
  function: run_contractor_build

- 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 {filename} exists
  function: file_exists

- then: the JSON output matches {filename}
  function: stdout_json_matches_yaml_file