summaryrefslogtreecommitdiffstats
path: root/test/test_go.rb
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2015-07-23 21:05:33 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2015-07-23 21:05:33 +0900
commitfdbf3d3fec4121a52a77330bba383c4878547b2a (patch)
treef4c1447c194027ffd718612d64e0e5f5ef404fe1 /test/test_go.rb
parentf9136cffe6d9a57003f3db39a07546b43df134cb (diff)
Replace eof action with cancel (#289)
Diffstat (limited to 'test/test_go.rb')
-rw-r--r--test/test_go.rb14
1 files changed, 7 insertions, 7 deletions
diff --git a/test/test_go.rb b/test/test_go.rb
index 4f247edd..ad2150e0 100644
--- a/test/test_go.rb
+++ b/test/test_go.rb
@@ -718,14 +718,14 @@ class TestGoFZF < TestBase
end
end
- def test_eof
- tmux.send_keys "seq 100 | #{fzf "--bind 2:eof"}", :Enter
- tmux.until { |lines| lines[-2].include?('100/100') }
+ def test_canel
+ tmux.send_keys "seq 10 | #{fzf "--bind 2:cancel"}", :Enter
+ tmux.until { |lines| lines[-2].include?('10/10') }
tmux.send_keys '123'
- tmux.until do |lines|
- lines[-1] == '> 13' && lines[-2].include?('1/100')
- end
- tmux.send_keys :BSpace, :BSpace
+ tmux.until { |lines| lines[-1] == '> 3' && lines[-2].include?('1/10') }
+ tmux.send_keys 'C-y', 'C-y'
+ tmux.until { |lines| lines[-1] == '> 311' }
+ tmux.send_keys 2
tmux.until { |lines| lines[-1] == '>' }
tmux.send_keys 2
tmux.prepare