diff options
author | Sebastian Thiel <sthiel@thoughtworks.com> | 2019-06-01 12:23:11 +0530 |
---|---|---|
committer | Sebastian Thiel <sthiel@thoughtworks.com> | 2019-06-01 12:23:11 +0530 |
commit | c50332cead2688e40de192e1b47e50a662763a78 (patch) | |
tree | 8913392dee9f5f4b694fc043fa67d4160afaebf1 /tests/stateless-journey.sh | |
parent | 04ce0c9312fb5e290d6fbaed8e9427bec3f3e1c6 (diff) |
Support for paths specification without subcommand
Diffstat (limited to 'tests/stateless-journey.sh')
-rwxr-xr-x | tests/stateless-journey.sh | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/tests/stateless-journey.sh b/tests/stateless-journey.sh index 60f0586..a6e0fa5 100755 --- a/tests/stateless-journey.sh +++ b/tests/stateless-journey.sh @@ -24,10 +24,18 @@ SUCCESSFULLY=0 ) ls (with "multiple given paths" - it "produces a human-readable (metric) aggregate of the current directory, with total" && { - WITH_SNAPSHOT="$snapshot/success-no-arguments-multiple-input-paths" \ - expect_run ${SUCCESSFULLY} "$exe" a . . dir ./dir/ ./dir/sub - } + (when "specifying a subcommand" + it "produces a human-readable (metric) aggregate of the current directory, with total" && { + WITH_SNAPSHOT="$snapshot/success-no-arguments-multiple-input-paths" \ + expect_run ${SUCCESSFULLY} "$exe" aggregate . . dir ./dir/ ./dir/sub + } + ) + (when "specifying no subcommand" + it "produces a human-readable (metric) aggregate of the current directory, with total" && { + WITH_SNAPSHOT="$snapshot/success-no-arguments-multiple-input-paths" \ + expect_run ${SUCCESSFULLY} "$exe" . . dir ./dir/ ./dir/sub + } + ) ) ) |