Skip to content
This repository has been archived by the owner on Mar 2, 2024. It is now read-only.

Commit

Permalink
Add Test to catch Error reported in issue #1
Browse files Browse the repository at this point in the history
An Error occurred in updating grunt templates as reported in
issue #1 as reported here:

#1

This test will catch this kind of error
  • Loading branch information
GochoMugo committed Jan 10, 2015
1 parent 31a4745 commit 5dc1ea5
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/test.grunt-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -63,3 +63,15 @@ make_fake_template() {
grunt_log "Wont show up on console" 0 > _TEST_grunt_log_file
[ $(grep -c -E "*" _TEST_grunt_log_file) -eq 0 ]
}


# refer to issue #1 (https://github.com/GochoMugo/grunt-install/issues/1)
@test "grunt_update_templates: updates templates regardless of working directory" {
mkdir _TEST_grunt_update_cwd
cd _TEST_grunt_update_cwd
grunt_update_templates > log
[ $(grep -c -E "failed to update" log) -eq 0 ]
exit_code=$?
cd -
return $?
}

0 comments on commit 5dc1ea5

Please sign in to comment.