forked from zsh-users/zsh-autosuggestions
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add yank-pop test based on suggestion in PR zsh-users#551
- Loading branch information
Showing
1 changed file
with
18 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
context 'after positioning cursor before a word' do | ||
before do | ||
session.send_string('echo hello world bye') | ||
end | ||
|
||
describe '`yank` then `yank-pop`' do | ||
it 'should insert text in correct position before word' do | ||
session.send_keys('C-w').send_keys('C-h').send_keys('C-w') | ||
wait_for { session.content }.to eq('echo hello') | ||
|
||
session.send_keys('M-b').send_keys('C-y') | ||
wait_for { session.content }.to eq('echo worldhello') | ||
|
||
session.send_keys('M-y') | ||
wait_for { session.content }.to eq('echo byehello') | ||
end | ||
end | ||
end |