Pārlūkot izejas kodu

Implements test for when buffer is longer than max

pull/762/head
sb-o pirms 1 gada
vecāks
revīzija
d0feff798d
1 mainītis faili ar 5 papildinājumiem un 1 dzēšanām
  1. +5
    -1
      spec/options/buffer_max_size_spec.rb

+ 5
- 1
spec/options/buffer_max_size_spec.rb Parādīt failu

@ -25,6 +25,10 @@ describe 'a suggestion' do
wait_for { session.content }.to eq(long_command)
end
it 'is not provided when the buffer is longer than the specified length'
it 'is not provided when the buffer is longer than the specified length' do
session.send_string(long_command[0...(buffer_max_size + 1)])
sleep 1
expect(session.content).to eq(long_command[0...(buffer_max_size + 1)])
end
end
end

Notiek ielāde…
Atcelt
Saglabāt