Fix tests that were failing due to improved error messages.

This commit is contained in:
Trevor Brown 2017-03-25 15:16:58 -04:00
parent 0f7757a910
commit 564b9ed517
2 changed files with 3 additions and 3 deletions

View File

@ -25,7 +25,7 @@ teardown() {
@test "plugin_remove_command should exit with 1 when not passed any arguments" {
run plugin_remove_command
[ "$status" -eq 1 ]
[ "$output" = "No such plugin" ]
[ "$output" = "No plugin given" ]
}
@test "plugin_remove_command should exit with 1 when passed invalid plugin name" {
@ -69,4 +69,4 @@ teardown() {
# unrelated shim should exist
[ -f $ASDF_DIR/shims/gummy ]
}
}

View File

@ -19,7 +19,7 @@ teardown() {
@test "check_if_version_exists should exit with 1 if plugin does not exist" {
run check_if_version_exists "inexistent" "1.0.0"
[ "$status" -eq 1 ]
[ "$output" = "version 1.0.0 is not installed for inexistent" ]
[ "$output" = "No such plugin" ]
}
@test "check_if_version_exists should exit with 1 if version does not exist" {