diff options
author | Junegunn Choi <junegunn.c@gmail.com> | 2015-04-22 00:57:25 +0900 |
---|---|---|
committer | Junegunn Choi <junegunn.c@gmail.com> | 2015-04-22 00:57:25 +0900 |
commit | edb5ab56222add7552c9180a65b29afbe0af9714 (patch) | |
tree | 1d8b24e5bee3dde6c872359e9afa2f511f751515 | |
parent | 06b4f7568084358fce6927c3bedc6816159607f0 (diff) |
Update test cases for #203
-rw-r--r-- | test/test_go.rb | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/test/test_go.rb b/test/test_go.rb index 92d15448..69285c8e 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' } |