Print a message when all went well
This commit is contained in:
parent
d90e2eebc3
commit
fea90637e3
2 changed files with 8 additions and 0 deletions
|
|
@ -111,5 +111,6 @@ for commit_hash in "${commits[@]}"; do
|
|||
done
|
||||
|
||||
echo
|
||||
echo "Success!"
|
||||
echo "Returning to $orig_ref"
|
||||
git checkout -q "$orig_ref"
|
||||
|
|
|
|||
|
|
@ -46,6 +46,13 @@ commit_with_assertion() {
|
|||
assert_file_not_exists ../test
|
||||
}
|
||||
|
||||
@test "should print success after completing" {
|
||||
run git-check-assertions
|
||||
|
||||
assert_success
|
||||
assert_output --partial "Success!"
|
||||
}
|
||||
|
||||
@test "should refuse to run when the index has changes" {
|
||||
echo "staged" >>readme
|
||||
git add readme
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue