Mercurial > dotfiles
comparison .zfun/zsh-autosuggestions/spec/kill_ring_spec.rb @ 467:e1ce8897030d
zsh: import df6f6f9ff41 of zsh-autosuggestions
author | Augie Fackler <raf@durin42.com> |
---|---|
date | Mon, 03 Dec 2018 22:37:29 -0500 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
466:f248cf012d9a | 467:e1ce8897030d |
---|---|
1 context 'with some items in the kill ring' do | |
2 before do | |
3 session. | |
4 send_string('echo foo'). | |
5 send_keys('C-u'). | |
6 send_string('echo bar'). | |
7 send_keys('C-u') | |
8 end | |
9 | |
10 describe '`yank-pop`' do | |
11 it 'should cycle through all items in the kill ring' do | |
12 session.send_keys('C-y') | |
13 wait_for { session.content }.to eq('echo bar') | |
14 | |
15 session.send_keys('escape').send_keys('y') | |
16 wait_for { session.content }.to eq('echo foo') | |
17 | |
18 session.send_keys('escape').send_keys('y') | |
19 wait_for { session.content }.to eq('echo bar') | |
20 end | |
21 end | |
22 end | |
23 |