Skip to content
Snippets Groups Projects
Commit 2e773f13 authored by nimrod's avatar nimrod
Browse files

- Corrected setup and teardown functions (didn't read the documentation...

- Corrected setup and teardown functions (didn't read the documentation correctly, should be a shell function not a test).
parent 3029b7cb
No related branches found
No related tags found
No related merge requests found
......@@ -3,7 +3,7 @@
export PATH="$BATS_TEST_DIRNAME/../:$PATH"
export repo="$BATS_TMPDIR/testrepo"
@test "setup" {
setup () {
if [ ! -f "$repo/file" ]
then
git init "$repo"
......@@ -61,6 +61,6 @@ export repo="$BATS_TMPDIR/testrepo"
! merge-conflict
}
@test "teardown" {
teardown () {
rm -rf "$repo"
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment