mirror of
https://github.com/zsh-users/zsh-autosuggestions.git
synced 2024-12-30 00:03:56 +08:00
e715ffb1ae
Write mock history to a temp file and load it directly with `fc -R` instead of running each command individually to build up the history.
9 lines
224 B
Ruby
9 lines
224 B
Ruby
describe 'a multi-line suggestion' do
|
|
it 'should be displayed on multiple lines' do
|
|
with_history("echo \"\n\"") do
|
|
session.send_keys('e')
|
|
wait_for { session.content }.to eq("echo \"\n\"")
|
|
end
|
|
end
|
|
end
|