Skip to content

Commit 527d123

Browse files
author
Bruno Sutic
committed
Test for 'set-option' plugin definition
1 parent 4671ee7 commit 527d123

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

tests/test_plugin_installation.sh

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,22 @@ test_plugin_installation_via_tmux_key_binding() {
2929
teardown_helper
3030
}
3131

32+
test_plugin_installation_via_tmux_key_binding_set_option() {
33+
set_tmux_conf_helper <<- HERE
34+
set -g mode-keys vi
35+
set-option -g @plugin "tmux-plugins/tmux-example-plugin"
36+
run-shell "$TPM_DIR/tpm"
37+
HERE
38+
39+
"$CURRENT_DIR/expect_successful_plugin_download" ||
40+
fail_helper "[key-binding][set-option] plugin installation fails"
41+
42+
check_dir_exists_helper "$PLUGINS_DIR/tmux-example-plugin/" ||
43+
fail_helper "[key-binding][set-option] plugin download fails"
44+
45+
teardown_helper
46+
}
47+
3248
test_plugin_installation_custom_dir_via_tmux_key_binding() {
3349
set_tmux_conf_helper <<- HERE
3450
set -g mode-keys vi

0 commit comments

Comments
 (0)