From edb5ab56222add7552c9180a65b29afbe0af9714 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Wed, 22 Apr 2015 00:57:25 +0900 Subject: [PATCH] Update test cases for #203 --- test/test_go.rb | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/test/test_go.rb b/test/test_go.rb index 92d1544..69285c8 100644 --- a/test/test_go.rb +++ b/test/test_go.rb @@ -582,11 +582,11 @@ module TestShell def test_alt_c tmux.prepare - tmux.send_keys :Escape, :c - lines = tmux.until { |lines| lines[-1].start_with? '>' } + tmux.send_keys :Escape, :c, pane: 0 + lines = tmux.until(pane: 1) { |lines| lines[-1].start_with? '>' } expected = lines[-3][2..-1] p expected - tmux.send_keys :Enter + tmux.send_keys :Enter, pane: 1 tmux.prepare tmux.send_keys :pwd, :Enter tmux.until { |lines| p lines; lines[-1].end_with?(expected) } @@ -599,11 +599,11 @@ module TestShell tmux.send_keys 'echo 3d', :Enter; tmux.prepare tmux.send_keys 'echo 3rd', :Enter; tmux.prepare tmux.send_keys 'echo 4th', :Enter; tmux.prepare - tmux.send_keys 'C-r' - tmux.until { |lines| lines[-1].start_with? '>' } - tmux.send_keys '3d' - tmux.until { |lines| lines[-3].end_with? 'echo 3rd' } # --no-sort - tmux.send_keys :Enter + tmux.send_keys 'C-r', pane: 0 + tmux.until(pane: 1) { |lines| lines[-1].start_with? '>' } + tmux.send_keys '3d', pane: 1 + tmux.until(pane: 1) { |lines| lines[-3].end_with? 'echo 3rd' } # --no-sort + tmux.send_keys :Enter, pane: 1 tmux.until { |lines| lines[-1] == 'echo 3rd' } tmux.send_keys :Enter tmux.until { |lines| lines[-1] == '3rd' }