From 5151adfe400c8a0ccefe7a4f440ae0fb6f5f67a0 Mon Sep 17 00:00:00 2001 From: Eric Freese Date: Sun, 29 Jan 2017 10:40:05 -0700 Subject: [PATCH] Make TerminalSession#clear block until the screen is cleared --- spec/terminal_session.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/spec/terminal_session.rb b/spec/terminal_session.rb index ca06343..ee0bca1 100644 --- a/spec/terminal_session.rb +++ b/spec/terminal_session.rb @@ -28,6 +28,7 @@ class TerminalSession def clear send_keys('C-l') + sleep(0.1) until content == '' end def destroy