From 527d12321108d52cc5b53cd251f2a058fd07bf0e Mon Sep 17 00:00:00 2001 From: Bruno Sutic Date: Thu, 8 Oct 2015 01:24:08 +0200 Subject: [PATCH] Test for 'set-option' plugin definition --- tests/test_plugin_installation.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/tests/test_plugin_installation.sh b/tests/test_plugin_installation.sh index 65b1899..94fb674 100755 --- a/tests/test_plugin_installation.sh +++ b/tests/test_plugin_installation.sh @@ -29,6 +29,22 @@ test_plugin_installation_via_tmux_key_binding() { teardown_helper } +test_plugin_installation_via_tmux_key_binding_set_option() { + set_tmux_conf_helper <<- HERE + set -g mode-keys vi + set-option -g @plugin "tmux-plugins/tmux-example-plugin" + run-shell "$TPM_DIR/tpm" + HERE + + "$CURRENT_DIR/expect_successful_plugin_download" || + fail_helper "[key-binding][set-option] plugin installation fails" + + check_dir_exists_helper "$PLUGINS_DIR/tmux-example-plugin/" || + fail_helper "[key-binding][set-option] plugin download fails" + + teardown_helper +} + test_plugin_installation_custom_dir_via_tmux_key_binding() { set_tmux_conf_helper <<- HERE set -g mode-keys vi