Skip to content

Commit

Permalink
Load vars from common
Browse files Browse the repository at this point in the history
  • Loading branch information
Don Murray committed Jul 14, 2024
1 parent 8321658 commit 46b2d46
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
6 changes: 6 additions & 0 deletions test/common
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@

# So we can pass flags to run
bats_require_minimum_version 1.5.0

TRUE=0
FALSE=1
7 changes: 2 additions & 5 deletions test/default.bats
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
#!/usr/bin/env bats

# So we can pass flags to run
bats_require_minimum_version 1.5.0

TRUE=0
FALSE=1
SCRIPT_DIR=$(cd -- "$(dirname -- "${BATS_TEST_FILENAME}")" &>/dev/null && pwd)
source ${SCRIPT_DIR}/common

@test "Default environment is test" {
run -$TRUE task
Expand Down

0 comments on commit 46b2d46

Please sign in to comment.