From 53e91d130bd544c5adb1c2fd9ed1e8d40ea52e27 Mon Sep 17 00:00:00 2001 From: Paul Irish Date: Sun, 18 Jun 2017 17:14:31 -0700 Subject: [PATCH] export BROWSER variable, and test that its set. --- test/git-open.bats | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/test/git-open.bats b/test/git-open.bats index 47be2f2..7f95a38 100644 --- a/test/git-open.bats +++ b/test/git-open.bats @@ -7,9 +7,18 @@ foldername="sandboxrepo" setup() { create_git_sandbox - BROWSER=echo + export BROWSER=echo } +## +## Test environment +## +@test "test environment" { + assert_equal "$BROWSER" "echo" + cd .. + assert [ -e "$foldername" ] + assert [ -e "$foldername/.git" ] +} ## ## GitHub