From eab436f4a0c79791d618c3f430a563f001f30a50 Mon Sep 17 00:00:00 2001 From: Jorge Morante Date: Tue, 15 Jan 2019 08:59:17 +0100 Subject: [PATCH] hints change, so fix them tests --- test/specs/basic-yank_spec.sh | 2 +- test/specs/fish-support_spec.sh | 4 +++- test/specs/matches-custom-patterns_spec.sh | 4 ++-- test/specs/more-than-one-match-per-line_spec.sh | 2 +- test/specs/tmux-yank-integration_spec.sh | 2 +- test/specs/works-with-custom-bindings_spec.sh | 2 +- 6 files changed, 9 insertions(+), 7 deletions(-) diff --git a/test/specs/basic-yank_spec.sh b/test/specs/basic-yank_spec.sh index 6d0d1ab..fb5886c 100755 --- a/test/specs/basic-yank_spec.sh +++ b/test/specs/basic-yank_spec.sh @@ -13,7 +13,7 @@ init_pane tmuxomatic__exec "cat ./test/fixtures/grep-output" invoke_fingers -tmuxomatic send-keys "i" +tmuxomatic send-keys "d" echo_yanked tmuxomatic__expect "yanked text is scripts/hints.sh" diff --git a/test/specs/fish-support_spec.sh b/test/specs/fish-support_spec.sh index fca3244..bd4a2a3 100755 --- a/test/specs/fish-support_spec.sh +++ b/test/specs/fish-support_spec.sh @@ -11,8 +11,10 @@ tmuxomatic__exec "tmux -f /home/vagrant/shared/test/conf/basic.conf new -s test" init_pane_fish tmuxomatic__exec "cat ./test/fixtures/grep-output" invoke_fingers -tmuxomatic send-keys "i" +tmuxomatic send-keys "d" echo_yanked +sleep 1.0 + tmuxomatic__expect "yanked text is scripts/hints.sh" tmuxomatic__end end_hook diff --git a/test/specs/matches-custom-patterns_spec.sh b/test/specs/matches-custom-patterns_spec.sh index 01b4ada..d1a3dc1 100755 --- a/test/specs/matches-custom-patterns_spec.sh +++ b/test/specs/matches-custom-patterns_spec.sh @@ -13,11 +13,11 @@ tmuxomatic__exec "cat ./test/fixtures/custom-patterns" tmuxomatic send-keys "echo yanked text is " invoke_fingers -tmuxomatic send-keys "i" +tmuxomatic send-keys "d" tmux_paste invoke_fingers -tmuxomatic send-keys "o" +tmuxomatic send-keys "s" tmux_paste tmuxomatic send-keys Enter diff --git a/test/specs/more-than-one-match-per-line_spec.sh b/test/specs/more-than-one-match-per-line_spec.sh index 92cdd13..6726e7a 100755 --- a/test/specs/more-than-one-match-per-line_spec.sh +++ b/test/specs/more-than-one-match-per-line_spec.sh @@ -13,7 +13,7 @@ tmuxomatic__exec "cat ./test/fixtures/ip-output" sleep 1.0 invoke_fingers -tmuxomatic send-keys "t" +tmuxomatic send-keys "r" echo_yanked tmuxomatic__expect "yanked text is 10.0.3.1" diff --git a/test/specs/tmux-yank-integration_spec.sh b/test/specs/tmux-yank-integration_spec.sh index f6e09c1..f397b24 100755 --- a/test/specs/tmux-yank-integration_spec.sh +++ b/test/specs/tmux-yank-integration_spec.sh @@ -11,7 +11,7 @@ init_pane tmuxomatic__exec "cat ./test/fixtures/grep-output" invoke_fingers -tmuxomatic send-keys "i" +tmuxomatic send-keys "d" tmuxomatic__sleep 1 tmuxomatic__exec "cat /tmp/tmux-yank-result" diff --git a/test/specs/works-with-custom-bindings_spec.sh b/test/specs/works-with-custom-bindings_spec.sh index 819be51..801d576 100755 --- a/test/specs/works-with-custom-bindings_spec.sh +++ b/test/specs/works-with-custom-bindings_spec.sh @@ -14,7 +14,7 @@ init_pane tmuxomatic__exec "cat ./test/fixtures/grep-output" invoke_fingers -tmuxomatic send-keys "i" +tmuxomatic send-keys "d" echo_yanked tmuxomatic__expect "yanked text is scripts/hints.sh"