From e6f9209431276cda921bd21009d5666a806faa07 Mon Sep 17 00:00:00 2001 From: Jason Karns Date: Thu, 7 Feb 2019 10:58:10 -0500 Subject: [PATCH] Move the run helper notes to bottom of section --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 25748cf5..36643f0c 100644 --- a/README.md +++ b/README.md @@ -249,10 +249,6 @@ command, saves the exit status and output into special global variables, and then returns with a `0` status code so you can continue to make assertions in your test case. -__Note:__ The `run` helper executes its argument(s) in a subshell, so if -writing tests against environmental side-effects like a variable's value -being changed, these changes will not persist after `run` completes. - For example, let's say you're testing that the `foo` command, when passed a nonexistent filename, exits with a `1` status code and prints an error message. @@ -280,6 +276,10 @@ without any arguments prints usage information on the first line: } ``` +__Note:__ The `run` helper executes its argument(s) in a subshell, so if +writing tests against environmental side-effects like a variable's value +being changed, these changes will not persist after `run` completes. + ### `load`: Share common code You may want to share common code across multiple test files. Bats includes a