Should work

This commit is contained in:
Marcin Grzejszczak
2019-03-28 22:36:46 +01:00
parent 15a0de25f3
commit 17561eb47b

View File

@@ -219,14 +219,14 @@ export -f stubbed_git
}
@test "should retrieve the name of the current branch" {
export GIT_BIN="printing_git"
export GIT_BIN="stubbed_git"
cd "${TEMP_DIR}/spring-cloud-stream/"
source "${SOURCE_DIR}"/ghpages.sh
run retrieve_current_branch
assert_success
assert_output --partial "git checkout git symbolic-ref -q HEAD"
assert_output --partial "git checkout master"
}
@test "should retrieve the name of the current branch when previous branch was set" {