fisher/test/key-bindings-disable.fish
Jorge Bucaran 692bb22db6 Ahoy! We are getting close to 0.8.0
* Move AUTHORS -> THANKS and remove automatic generation.

THANKS is more sensible than AUTHORS. CREDITS was second best.
Also, after perusing similar files in other projects I noticed
some entries lacking a valid email address and decided fow now
this file should be curated manually to make sure each entry
contains a useful link. This allows users who have contributed
to the project ways other than committing code to be added to
the list as well.

* Rename wait -> spin.

* Remove extra padding in links. (Cosmetic)

* Update to reflect API refactorings.

* Fix bug causing brackets to show up in description.

* Implement using spin function.

* __fisher_gist_to_name uses curl to query the GitHub API which will
return a JSON stream even if the Gist could not be found. So, it's
not possible to determine whether we failed or not using our spin
function and actually need to check the returned string to see if
it contains a valid name or not.

* Let git pull write errors to stderr.

* Use new internal __fisher_spin.

* Extract spin to independent / external module and tweak Makefile
to better integrate with new install process.
2016-02-14 13:17:47 +09:00

30 lines
818 B
Fish

set -l path $DIRNAME/.t-$TESTNAME-(random)
set -l fixtures $DIRNAME/fixtures/key-bindings
function -S setup
mkdir -p $path
cp $DIRNAME/fixtures/key-bindings/*.fish $path
set -g fisher_binds $path/fisher_key_bindings.fish
for plugin in foo bar baz
__fisher_key_bindings_disable $plugin $path/user_key_bindings.fish >> $path/key_bindings_log
end
end
function -S teardown
rm -rf $path
end
test "$TESTNAME - Remove bindings from fisher key bindings file"
! -s $path/fisher_key_bindings.fish
end
test "$TESTNAME - Update fish_user_key_bindings after all bindings are deleted"
(cat $fixtures/expected/key_bindings) = (cat $path/user_key_bindings.fish)
end
test "$TESTNAME - Undo plugin bindings"
(cat $fixtures/expected/key_bindings_log) = (cat $path/key_bindings_log)
end