Skip to content

Commit 0ea135d

Browse files
committed
normalize fixture stepdefs
1 parent a48edcd commit 0ea135d

3 files changed

Lines changed: 15 additions & 15 deletions

File tree

  • features/fixtures
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
@When I print configured output
2-
run 'printf configured'
2+
run 'printf configured'
33

44
@When I print loaded support values
5-
run "printf '%s' \"$SUPPORT_VALUE\""
5+
run "printf '%s' \"$SUPPORT_VALUE\""
66

77
@Then the output should include '{text}'
8-
[[ "$LAST_STDOUT" == *"$text"* ]]
8+
[[ "$LAST_STDOUT" == *"$text"* ]]
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
@When I run '{command}'
2-
PATH="$(pwd):$PATH" run "$command"
2+
PATH="$(pwd):$PATH" run "$command"
33

44
@Then the output should include '{text}'
5-
[[ "$LAST_STDOUT" == *"$text"* ]]
5+
[[ "$LAST_STDOUT" == *"$text"* ]]
66

77
@Then the output should match
8-
[[ "$LAST_STDOUT" == "$DOC_STRING" ]]
8+
[[ "$LAST_STDOUT" == "$DOC_STRING" ]]
Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
11
@Given I am in a temp directory
2-
TEMP_DIR=$(mktemp -d)
3-
cd "$TEMP_DIR"
2+
TEMP_DIR=$(mktemp -d)
3+
cd "$TEMP_DIR"
44

55
@When I fail deliberately
6-
false
6+
false
77

88
@Given setup fails
9-
false
9+
false
1010

1111
@When I run '{command}'
12-
PATH="$(pwd):$PATH" run "$command"
12+
PATH="$(pwd):$PATH" run "$command"
1313

1414
@Then the output should include '{text}'
15-
[[ "$LAST_STDOUT" == *"$text"* ]]
15+
[[ "$LAST_STDOUT" == *"$text"* ]]
1616

1717
@Then the output should match
18-
[[ "$LAST_STDOUT" == "$DOC_STRING" ]]
18+
[[ "$LAST_STDOUT" == "$DOC_STRING" ]]
1919

2020
@Then the file '{path}' should exist
21-
[[ -f "$path" ]]
21+
[[ -f "$path" ]]
2222

2323
@Then I announce '{text}'
24-
printf '%s' "$text"
24+
printf '%s' "$text"

0 commit comments

Comments
 (0)