mirror of
https://github.com/zsh-users/zsh-autosuggestions.git
synced 2025-02-27 10:25:31 +08:00

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
|