From 564b9ed517cb53b9957998fa9d160ad394d2f628 Mon Sep 17 00:00:00 2001 From: Trevor Brown Date: Sat, 25 Mar 2017 15:16:58 -0400 Subject: [PATCH] Fix tests that were failing due to improved error messages. --- test/remove_command.bats | 4 ++-- test/utils.bats | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test/remove_command.bats b/test/remove_command.bats index d6df5e39..a88897d5 100644 --- a/test/remove_command.bats +++ b/test/remove_command.bats @@ -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 ] -} \ No newline at end of file +} diff --git a/test/utils.bats b/test/utils.bats index 16b92a5a..52d25390 100644 --- a/test/utils.bats +++ b/test/utils.bats @@ -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" {