Skip to content

Commit 2342d98

Browse files
committed
fix 'doesn't deploy source file' test
1 parent 64efc73 commit 2342d98

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

integration-test.bats

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
#!/usr/bin/env bats
22

3+
source lib/assert.bash
4+
source deploy.sh --source-only
5+
36
setup() {
47
tmp=`mktemp --tmpdir --directory deploy_test.XXXX`
58
pushd "$tmp" >/dev/null
@@ -22,8 +25,6 @@ create_repo() {
2225
touch dist/file
2326
}
2427

25-
source deploy.sh --source-only
26-
2728
@test "deploy creates branch and deploys file" {
2829

2930
main
@@ -77,6 +78,6 @@ source deploy.sh --source-only
7778

7879
main
7980

80-
[[ -z `ls --almost-all dist 2> /dev/null` ]] # no files in dist
81+
assert that `ls --almost-all dist` = file
8182
! git cat-file -e gh-pages:source # `source` does not exist on gh-pages
8283
}

0 commit comments

Comments
 (0)