From 47f787535a8e8cffead72e793f63ef28ca579aeb Mon Sep 17 00:00:00 2001 From: Jorge Bucaran Date: Tue, 16 Feb 2016 17:42:41 +0900 Subject: [PATCH] Update for new __fisher_help_* functions. --- test/fisher.fish | 4 ++-- test/fixtures/help/usage.txt | 8 ++++---- test/help.fish | 6 +++--- test/install.fish | 4 ++-- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/test/fisher.fish b/test/fisher.fish index 8f04151..ace114d 100644 --- a/test/fisher.fish +++ b/test/fisher.fish @@ -16,7 +16,7 @@ function -S teardown functions -e fisher_$mock_command end -test "$TESTNAME - Evaluate `fisher_' (sub) commands" +test "$TESTNAME - Evaluate fisher_ (sub) commands" (fisher $mock_command) = Usage:... end @@ -36,7 +36,7 @@ test "$TESTNAME - Display usage help" (fisher | sed 1q) = "Usage: fisher [] [--list] [--version] [--help]" end -test "$TESTNAME - Display basic information about using the `help' command by default" +test "$TESTNAME - Display basic information help info about 'help'" (fisher | tail -n2 | xargs) = "Use fisher help -g to list guides and other documentation. See fisher help to access a man page." end diff --git a/test/fixtures/help/usage.txt b/test/fixtures/help/usage.txt index 837184e..6fcfa2d 100644 --- a/test/fixtures/help/usage.txt +++ b/test/fixtures/help/usage.txt @@ -21,7 +21,7 @@ Usage: fisher install [] [--force] [--quiet] [--help] -h --help Show usage help Usage: fisher help [] [--all] [--guides] [--help] - -a --all List available documentation - -g --guides List available guides - -u --usage[=] Display command usage - -h --help Show usage help + -a --all List available documentation + -g --guides List available guides + --usage[=] Display command usage + -h --help Show usage help diff --git a/test/help.fish b/test/help.fish index ab61038..2ab62a5 100644 --- a/test/help.fish +++ b/test/help.fish @@ -17,15 +17,15 @@ function -S teardown rm -rf $path end -test "$TESTNAME - Show both available guides and command with `help --all`" +test "$TESTNAME - Show both available guides and command with help --all" ! -z (fisher help --all | grep -E 'Available Commands:$|Other Documentation:$' | xargs) end -test "$TESTNAME - Show available guides/tutorials with `--guides`" +test "$TESTNAME - Show available guides/tutorials with --guides" ! -z (fisher help --guides | grep -E 'Other Documentation:$' | xargs) end -test "$TESTNAME - Show usage help with `--usage=command`" +test "$TESTNAME - Show usage help with --usage=command" (fisher help --usage=help) = (fisher help -h) end diff --git a/test/install.fish b/test/install.fish index b8312fc..913d091 100644 --- a/test/install.fish +++ b/test/install.fish @@ -35,11 +35,11 @@ test "$TESTNAME - Append installed plugins to fishfile" ) end -test "$TESTNAME - Add plugin key bindings to `key_bindings.fish`" +test "$TESTNAME - Add plugin key bindings to key_bindings.fish" "##foobar## ##foobar##" = (cat $path/config/key_bindings.fish | xargs) end -test "$TESTNAME - Add `/scripts/` to scripts directory" +test "$TESTNAME - Add /scripts/ to scripts directory" -e $path/config/scripts/norf.py end